[MATLAB Programming\|/MATLAB Programming]m]
Chapter 1: MATLAB ._.
Introductions .
Chapter 2: MATLAB Concepts
Chapter 3: Variable Manipulation
Chapter 4: Vector and matrices
Chapter 5: Array
Chapter 6: Graphical Plotting
Chapter 7: M File Programming
Chapter 8: Advanced Topics
Chapter 9: Bonus chapters
Note that this page is a copy of the ControlTheoryPro.com page on semilogx/y commands.
Thesemilogx orsemilogy commands plot data with 1 axis linear and the other axis log scale. Thesemilogx command plots the data on the x-axis on a log scale. For controls this is particularly useful when manually creating abode plot.
The MATLAB bode plot is very convenient but when the plot needs to be formatted then the bode command makes this difficult. As a result this author (Gabe 13:30, 20 April 2008 (CDT)) creates bode plots using the following commands
freqVec=logspace(-1,3,5000);[mag,phs]=bode(sys,freqVec*(2*pi));mag=db(mag(:));phs=phs(:);figure;subplot(2,1,1)semilogx(freqVec,mag)gridontitle('System Bode Plot')ylabel('Magnitude (dB)')subplot(2,1,2)semilogx(freqVec,phs)gridonylabel('Phase (deg)')xlabel('Frequency (Hz)')