what is the error here? It is showing "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."
2 views (last 30 days)
Show older comments
ea=(abs(A(ma_i,ma_j)-
A_old(ma_i,ma_j))/abs(A(ma_i,ma_j)))*100;
0 Comments
Answers (1)
Cris LaPierre
on 15 May 2021
You have split your equation over two lines without telling MATLAB. You must add an ellipsis at the end of the first line to indicate the two lines are to be read together.
ea=(abs(A(ma_i,ma_j)- ...
A_old(ma_i,ma_j))/abs(A(ma_i,ma_j)))*100;
0 Comments
See Also
Categories
Find more on Logical 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!