フィルターのクリア

Index exceeds the number of array elements (36)

1 回表示 (過去 30 日間)
mattvanviore
mattvanviore 2021 年 2 月 8 日
回答済み: Srivardhan Gadila 2021 年 2 月 11 日
I have a problem with title. My code is:
str=strcat('rappresentazione euleriana della soluzione per CFL', num2str(CFL), 'e tempo t=', num2str(time_indaga), '');
title(str)
This is the error:
  2 件のコメント
KSSV
KSSV 2021 年 2 月 8 日
We cannot help you unless code is shown.
Any ways error is clear, this error occurs when you try to extract more number of elements then present in the array. check the dimensions of array and fix your loop index.
mattvanviore
mattvanviore 2021 年 2 月 8 日
i have this error only when i add the title on the figure

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

回答 (1 件)

Srivardhan Gadila
Srivardhan Gadila 2021 年 2 月 11 日
One possiblity is that you have declared a variable with the name "title" and it has 36 elements. If that's causing the error then rename such variable to some other name. You can find a similar error in the following Answer: index exceeds the number of array elements (5)
If that's not the issue, can you provide more information like the code you are executing and the dependent files.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by