MATLAB Answers

Index exceeds the number of array elements (36)

조회 수: 2(최근 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
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.

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by