Why do I get the error "Subscript indices must be real positive integers or logicals?"
古いコメントを表示
for k=1:length(x)
d=T(V)-Dft(V)-Dw(V);
end
max = max(d);
採用された回答
その他の回答 (1 件)
Paul Shoemaker
2018 年 3 月 1 日
0 投票
Two points...
First, it's very difficult to answer your question without number examples that we can test.
Second, you have "d" in a FOR loop, but do not appear to be using the loop index "k" for anything in the loop. So, why loop at all? I suspect this is a typo.
Paul Shoemaker
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!