Borrar filtros
Borrar filtros

Error in Plot Function

1 visualización (últimos 30 días)
John Carroll
John Carroll el 17 de Feb. de 2021
Comentada: Walter Roberson el 17 de Feb. de 2021
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 comentario
Walter Roberson
Walter Roberson el 17 de Feb. de 2021
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.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by