Combining separate graphs into one and changing the scale to match
1 次查看(过去 30 天)
显示 更早的评论
I have two seprate graphs obtained from Simulink. I am able to plot them individually however I need to plot then one over another.
How do I scale the graph so that they match each other? To be able to find the area where they do not overlap.
0 个评论
采纳的回答
Thiago Henrique Gomes Lobato
2020-2-9
You can do the first plot, plot the second one over it and then rescale the y axis to the values of the first plot (since the second has a way bigger value range) . Something like:
plot(time,data1)
hold on
plot(time,data2)
ylim([120,300])
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!