필터 지우기
필터 지우기

Error in Plot Function

조회 수: 1 (최근 30일)
John Carroll
John Carroll 2021년 2월 17일
댓글: Walter Roberson 2021년 2월 17일
I am reciving the following error when trying to plot:
Error using plot
Vectors must be the same length.
Error in lab2 (line 50)
plot(X2,twoHZ,'b--');
code:
figure (1)
subplot(2,3,1)
plot(X2,twoHZ,'b--');
xlabel('time(sec)')
ylabel('height (m)')
title('Two Hz')
Any help would be much apprciated!
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 2월 17일
We do not know what the sizes of X2 and twoHZ are, or how they are constructed.
All we know from the error message is that X2 and twoHZ are different sizes.

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

답변 (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