What is meant by this syntax : ( another variable in brackets after a variable)
14 views (last 30 days)
Show older comments
Sagar Saxena
on 18 Jan 2018
Answered: Walter Roberson
on 18 Jan 2018
Jmatf11(fmag>0) = (fx(fmag>0)./fmag(fmag>0)).^2 .* Jmf(fmag>0);
0 Comments
Accepted Answer
Walter Roberson
on 18 Jan 2018
variable(expression) is indexing. In that expression it is "logical indexing". See https://www.mathworks.com/help/matlab/math/matrix-indexing.html#bq7egb6-1
0 Comments
More Answers (0)
See Also
Categories
Find more on Whos 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!