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-')
0 件のコメント
採用された回答
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')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!