why do i get ylabel error?

回答 (1 件)

Star Strider
Star Strider 2022 年 7 月 13 日

0 投票

The error shown, that the string is interpreted as an index leads me to believe that you have a variable named ‘ylabel’ and MATLAB is attempting to index into it.
The solution is to re-name the variable to something similar that makes sense in the context of the code and does not overshadow any MATLAB function names.

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

タグ

質問済み:

2022 年 7 月 13 日

回答済み:

2022 年 7 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by