Bode Plots - Changing Line Styles
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
N/A
am 13 Mär. 2015
Beantwortet: Giovanni Pacheco
am 28 Okt. 2017
I created 3 bode magnitude plots with bodemag() and hold on, and I wanted to have it plot the three lines as three different black line styles (-, --, -. for example). I tried
LineStyle = '-'
LineStyle = '--'
LineStyle = '-.'
After each bodemag command, but I get three solid black lines. I know this is easier to do using simple plot(), but I'm not sure how to force this on the bode commands.
Thanks for any help!!
0 Kommentare
Akzeptierte Antwort
Sebastian Castro
am 13 Mär. 2015
You should use the line style in the bode (or bodemag) function itself, as follows:
>> sys1 = rss(2);
>> bodemag(sys1,'b-',2*sys1,'r--',0.5*sys1,'g-.');
- Sebastian
0 Kommentare
Weitere Antworten (1)
Giovanni Pacheco
am 28 Okt. 2017
How do you do the same thing but instead of seperate systems, using a system with a for loop so in this case sys(i)?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Response Computation and Visualization 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!