How to draw two plots in one figure?
조회 수: 5(최근 30일)
I have two plots like this:
I want to have two plots in one figure like this in matlab. But I dont know what to do. please help me Thanks alot..
When I use this commands:
The result is as follow:
Becaues the values of y in two plots are different.
Abhijit Nayak 2022년 5월 31일
From my understanding, you are looking for a way to have two plots in one figure with a common x-axis. You can use “yyaxis” function for such scenario.
For further reference, you can refer to the following MATLAB documentation link- .