Question: % Define the natural frequency ( wn ) and the range of damping factors ( zeta ) wn = 1 ; % Normalized natural frequencyzeta
Define the natural frequency wn and the range of damping factors zetawn ; Normalized natural frequencyzetavalues ; Different damping factors Frequency range for the Bode plotw logspace; Frequency range from to in log scale Loop over different zeta values and plot Bode plotfigure;hold on;for zeta zetavalues Define the transfer function for each zeta num ; Numerator s term den zetawn wn; Denominator szetawns wn sys tfnum den; Create transfer function mag phase bodesys w; Compute magnitude and phase Convert magnitude to dB magdB logsqueezemag; phasedeg squeezephase; Convert phase to degrees Plot magnitude and phase subplot; semilogxwwn magdB 'DisplayName', zeta numstrzeta; xlabelomega omegan; ylabel log Gjomega; titleMagnitude Response'; grid on; hold on; subplot; semilogxwwn phasedeg, 'DisplayName', zeta numstrzeta; xlabelomega omegan; ylabelPhase degrees; titlePhase Response'; grid on; hold on;end Add legendssubplot;legendshow;subplot;legendshow;
Make a graph in code above symmetrical to the yaxis
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
