フィルターのクリア

[~,ant_est] = max(abs(z));

1 回表示 (過去 30 日間)
Kartickeyan V
Kartickeyan V 2017 年 1 月 26 日
コメント済み: Walter Roberson 2017 年 1 月 26 日
When i used this above code in my matlab version 2009a it is showing an error Expression or statement is incorrect--possibly unbalanced (, {, or [.
help me to correct it
  2 件のコメント
Massimo Zanetti
Massimo Zanetti 2017 年 1 月 26 日
編集済み: Massimo Zanetti 2017 年 1 月 26 日
Most probably the error is not related to this line of code. Please, post more details (e.g., the piece of code and the whole matlab error message, including the line at which the error is found).
James Tursa
James Tursa 2017 年 1 月 26 日
編集済み: James Tursa 2017 年 1 月 26 日
I.e., several lines above and below the offending line.

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

採用された回答

Walter Roberson
Walter Roberson 2017 年 1 月 26 日
The ~ operator was not implemented until R2009b. You can replace that code with
[UnUsEdVaRiAbLe_To_IgNoRe, ant_est] = max(abs(z));
clear UnUsEdVaRiAbLe_To_IgNoRe
  6 件のコメント
Adam
Adam 2017 年 1 月 26 日
Don't clear the variable if time is more of an issue than memory. clear instructions take a lot of time, relatively.
Walter Roberson
Walter Roberson 2017 年 1 月 26 日
I would be unlikely to clear the junk variable myself, unless I was short on memory. The "clear" I showed is the logical equivalent, not the practical equivalent.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by