Cant plot the vectors of unequal lengths?

1 次查看(过去 30 天)
i am doing a complex simulation but i am facing the problem of plotting vectors unequal length. I tried a lot to make them equal but insane.. how can i make them equal? Size of different matrices and vectors: time= 1x2001 din = 4x2000
Thanks in advance
plot(time+0.18,fin(1,:),time,fin(2,:),'r')
plot(time(1:1000)+0.18,din(1,:),time(1:1000),din(2,:),'r')
plot(timev100,accv100(618,:),timev100butng,accv100butng(426,:))
hold on plot(time,-vel(584,:),'r-') hold on plot(time,acc(122,:),time,acc(427,:))
plot(time(1:1150),ddd(2,:),time(1:1150),dddlisan(2,:))
plot(time,-acc(781,:)) hold on plot(time,acc(387,:),'r-')
plot(time(1:1150),vel(122,1:1150),time(1:1150),vel(427,1:1150)) hold on plot(time,-dsp1(392,:),'r-')

采纳的回答

Steven Lord
Steven Lord 2016-10-20
What exactly would you want the following plot to look like?
x = [1 2 3];
y = [1 2];
plot(x, y, 'o')
How many points would you expect to see in the axes? If your answer is 3, what is the Y coordinate of the third point? If your answer is 2, you can do this by only using the first two elements of x (or the last two, or the first and third.)
plot(x(1:length(y)), y, 'o')
  1 个评论
Habib Muhammad
Habib Muhammad 2016-10-20
i want a complete plot for my vectors.. as far as i know my vectors don't have any issue:(( but my plotting is not that good....

请先登录,再进行评论。

更多回答(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