error in indexing mode
1 次查看(过去 30 天)
显示 更早的评论
hi, i wanna size of a matrix but below error happens:
Indexing cannot yield multiple results.
Error in Untitle222d2 (line 2)
[N,M]=size(V)
OR
V =
1.0350 0.9710 0.9680
Subscript indices must either be real positive integers or logicals.
Error in Untitle222d2 (line 2)
N=size(V)
what does this means.
0 个评论
回答(2 个)
C B
2021-11-26
V= [ 1.0350 0.9710 0.9680]
[numRows,numCols] = size(V)
N=size(V)
Working fine. You have some other query can you elaborate more please.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!