Array indices must be positive integers or logical values.

Why do I keep getting this error? Doesn't RRED should take care of indices?

 採用された回答

Walter Roberson
Walter Roberson 2023 年 3 月 8 日

0 投票

You have a symbolic variable named rref so rref(X) is a request to index the rref variable.

2 件のコメント

Hyeonjin
Hyeonjin 2023 年 3 月 8 日
I really appreciate your anwer.
But I did not make any symbolic variable named rref. If it is generated, how do I remove it?
Hyeonjin
Hyeonjin 2023 年 3 月 8 日
I solved it!
So the file is effected by other files in the folder. So I needed to get rid of rref variable there and clear workspace in home tap.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by