필터 지우기
필터 지우기

Why does my code plot the same thing twice

조회 수: 2 (최근 30일)
Christoffer Sørensen
Christoffer Sørensen 2022년 11월 28일
댓글: Christoffer Sørensen 2022년 11월 28일
Im trying to plot some data but it seems like it plots my data twice for some reason. Attached is the plotting file, the data import file and some sample data.
Image of the resulting plot:
It worked with other data sets but for some reason i dont know why it plots everything twice in the same figure.
  댓글 수: 6
Christoffer Sørensen
Christoffer Sørensen 2022년 11월 28일
I think I found the issue. It was with the
t = title('FontSize',16,'interpreter','latex','string',titlestringbf);
I just removed
'string',titlestringbf
And input the string variable as the first input in the title function.
Christoffer Sørensen
Christoffer Sørensen 2022년 11월 28일
@Jan Thank you for the helpful answers!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by