how to specify length on subplot
2 次查看(过去 30 天)
显示 更早的评论
Hi guys
so i want to subplot a vector and matrix in the same figure using this code
subplot(2,1,1)
plot(data);
subplot(2,1,2)
contour(wt);
the plot is ike this
the variable data (vector) length is 1600 and the variable wt(matrix) length is 1000
i want the subplot to be like this (the two variable have a same length,in this case i want the length to be 1000).
how to do that?
thank youu very much
0 个评论
采纳的回答
infinity
2019-6-25
Hello,
You could set xlim of the first figure.
More details, you should see this
https://it.mathworks.com/help/matlab/ref/xlim.html
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!