Info

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

Common reasons for "index exceeds matrix dimension" error?

1 回表示 (過去 30 日間)
Jake
Jake 2020 年 3 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi everyone,
This is more of a concern than a question, actually. Apologies in advance if this is not appropriate here.
I'm running a particular program and the input is basically a couple hundred txt files. When I first ran the program, it executed everything as desired (more or less). I have changed the input and it worked properly as well.
However, after a couple of turns, I'm running the same program with the input that I used initially and matlab gives an, index exceeds matrix dimension error. I also have cleared the workspace as well.
Are there any possible ideas off the top of your heads for this to happen? Or threads/Documentations that I can refer?
Again, this is only a concern and thus I haven't provided any code or any details. I'm wondering about possible or, maybe, common reasons.
I'd apologize if this wasted your time or something :)
  2 件のコメント
Mario Malic
Mario Malic 2020 年 3 月 17 日
Is it possible that you have overwritten files or maybe some of them are now empty?
Jake
Jake 2020 年 3 月 17 日
Good point. I replaced the input files when I was trying out different sets of inputs. But I was using the same set of files(inputs) which I used initially.
Thank you. I will try starting over with newer files as well.

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by