フィルターのクリア

I am not sure about the declaration of 4 variables..

1 回表示 (過去 30 日間)
Pavithran Kandasamy
Pavithran Kandasamy 2018 年 3 月 1 日
編集済み: Seyedali Mirjalili 2018 年 3 月 2 日
Please help me to declare 4 variables intially
  1 件のコメント
John D'Errico
John D'Errico 2018 年 3 月 1 日
Huh? You generally would not declare variables in MATLAB. An if you can initialize ONE variable, then you can as easily initialize 4 variables. You will probably be better off learning how to use a vector of length 4.
I would STRONGLY suggest you read the getting started tutorials. Reading the manual is a good way to learn to use a tool.

サインインしてコメントする。

回答 (1 件)

Seyedali Mirjalili
Seyedali Mirjalili 2018 年 3 月 2 日
編集済み: Seyedali Mirjalili 2018 年 3 月 2 日
In Matlab, you do not declare a variable. However, if you ask how to initialise four variables, here is the code:
var1 = 0
var2 = 0
var3 = 0
var4 = 0
The equal signs is an assignment statement. You can read the getting started tutorials for more info. Good luck.

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by