如何用MATLAB把两个不同坐标范围的函数画在一个图上?

2025-02-24 23:19:51
推荐回答(2个)
回答1:

有一个绘图函数你可能不知道但正是你需要的: plotyy()

>> help plotyy

PLOTYY Graphs with y tick labels on the left and right.
PLOTYY(X1,Y1,X2,Y2) plots Y1 versus X1 with y-axis labeling
on the left and plots Y2 versus X2 with y-axis labeling on
the right.

回答2:

搜一下:如何用MATLAB把两个不同坐标范围的函数画在一个图上?