Subscripted assignment dimension mismatch

1 回表示 (過去 30 日間)
Jakub
Jakub 2013 年 3 月 15 日
Hi I have function
m=0;
for i=1:18
for j=i+1:19
m=m+1;
pvalue(:,m) = [i j min(microst{i,j}(scale1:scale2,time))];
end
end
It isnt important what computes. It works fine but when i have it in my gui matlab says: Subscripted assignment dimension mismatch. Thanks for help!!

採用された回答

Image Analyst
Image Analyst 2013 年 3 月 15 日
Since I don't have your data, all I can do is guess. By chance, is the min() function giving a column vector instead of a row vector? Why don't you assign the results of that min operation to a temporary variable so you can check it. Do you know how to use the debugger?

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by