Info
此问题已关闭。 请重新打开它进行编辑或回答。
two vectors graph on same x-axis(time) point.
1 次查看(过去 30 天)
显示 更早的评论
i have 2 vectors x and y
>> t=1:10;
>> x=[1 4 3 -5 2.5 18 11 27 5 7];
>> y=[1 3.1 2.85 26 6.9];
>> plot(t,x)
which gives x plot, i wanted to draw y graph on existing plot on same t-axis points(1:10) such that elements value of y which matches x elements value should be drawn on t-points. for example y1=x1,y2=x3,y3=x5,y4=x8,y5=x10 are almost equal and these y values should plot on t values of t=[1 3 5 8 10] which was already there is x-plot i.e t=1:10
1 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!