필터 지우기
필터 지우기

[~,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 CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by