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 次查看(过去 30 天)
显示 更早的评论
ea=(abs(A(ma_i,ma_j)-
A_old(ma_i,ma_j))/abs(A(ma_i,ma_j)))*100;
0 个评论
回答(1 个)
Cris LaPierre
2021-5-15
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dynamic System Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!