フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Index Exceeds Matrix Dimensions in Large Array of Data

1 回表示 (過去 30 日間)
goyanks1989
goyanks1989 2016 年 1 月 20 日
閉鎖済み: Walter Roberson 2016 年 1 月 21 日
When running the attached code, I receive this error:
%
Index exceeds matrix dimensions.
Error in NonConvective (line 74)
bigDATA(ii, bigDATAstart:(bigDATAstart - 1 +length(goodPoints))) = a(goodPoints);
I thought that I fixed the error when I used a 25 x 100000 matrix, shown below, to reflect the 25 variables in the ii_array and (goodpoints). (I accidentally had bigDATA= NaN(16, 100000) in my previous code and forgot to switch)
%
bigDATA = NaN(25, 100000)
What else should I look at to fix this error and properly run this code? Thank you for your help, it is much appreciated.

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 1 月 20 日
The error does not have to do with the output, the error has to do with the input. That is, the error is about a(GoodPoints) . Your a is formed of imported data, but it appears to me that your GoodPoints is formed from values that are not computed according to the size of a with the result that they can potentially reference outside of the boundaries of a

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by