フィルターのクリア

Cant plot the vectors of unequal lengths?

1 回表示 (過去 30 日間)
Habib Muhammad
Habib Muhammad 2016 年 10 月 20 日
編集済み: Habib Muhammad 2016 年 10 月 20 日
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 Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by