Plotting multiple 2D metrices
2 次查看(过去 30 天)
显示 更早的评论
Hello.
I have two 2D metrices of different size
a = 2 x 375
b = 2 x 500
All data is between -0.5 to +0.5 in both X & Y Axis.
How to plot these data on the same Y vs X plot ? AND
How to plot these data against the number of iterations (normalized from 0) on the same plot?
2 个评论
KSSV
2020-9-17
As the data has same limit -0.5 to +0.5 you shall get the same Y-axis..why worried? Can't you use plot?
采纳的回答
KSSV
2020-9-17
Two options:
% If each matrix has two curves
figure
plot(A')
hold on
plot(B')
% If each matrix has (x,y) coordinates
figure
plot(A(1,:),A(2,:))
plot(B(1,:),B(2,:))
If not this you are expecting. Share your data.
6 个评论
KSSV
2020-9-17
You can use this file exchange: https://in.mathworks.com/matlabcentral/fileexchange/10473-plotaxisatorigin
Also you can do it without fileexchange function: refer: https://in.mathworks.com/matlabcentral/answers/382601-how-to-shift-x-axis-to-origin
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



