How to get effective parameter graph?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
Sulaymon Eshkabilov
am 1 Mai 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 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!