[~,ant_est] = max(abs(z));
1 view (last 30 days)
Show older comments
Kartickeyan V
on 26 Jan 2017
Commented: Walter Roberson
on 26 Jan 2017
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 Comments
James Tursa
on 26 Jan 2017
Edited: James Tursa
on 26 Jan 2017
I.e., several lines above and below the offending line.
Accepted Answer
Walter Roberson
on 26 Jan 2017
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 Comments
Walter Roberson
on 26 Jan 2017
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.
More Answers (0)
See Also
Categories
Find more on Numeric Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!