How to get effective parameter graph?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am currently practicing drawing an effective parameter graph using the transfer matrix component. However, the paper does not describe the detailed method, so I am working on the code myself, but what should come out in the form of left figure is that if I plot with the code I wrote, it will come out in the form of right, which part should I modify? I attached my code.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1371014/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1371019/image.jpeg)
0 comentarios
Respuestas (1)
Sulaymon Eshkabilov
el 1 de Mayo de 2023
Without seeing your data, one quick suggestion is:
Using yyaxis option for two different data sets and use y-axis limit, e.g.:
t=0:1/500:2.5;
y = 5*sin(2*pi*t);
z = 5*tan(2*pi*t);
yyaxis left
plot(t,y, 'b')
ylabel('y(t)')
G=gca;
G.YColor = 'b';
yyaxis right
plot(t,z, 'r-.')
H=gca;
H.YColor='r';
ylabel('z(t)')
ylim([-500 500])
grid on
xlabel('time')
legend('5sin(t)', '5tan(t)')
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!