Question
Hi everyone, could someone explain me how the sdmag parameter is calculated from the following statement? Thanks in advance. [mag,phase,wout,sdmag,sdphase] = bode(sys,w);
Expert Answer
Kshitij Singh
PhD Expert
Answered Aug 22, 2026
Those are only calculated for identified systems.
If you edit the bode.m here (to simply look through rather than edit the code):
C:\Program Files\MATLAB\R2018b\toolbox\shared\controllib\engine\@DynamicSystem\bode.m % Shadowed DynamicSystem method
you will find that it then refers to magphaseresp_.m and from there to freqresp.m, that among other outputs returns ‘covH’, the covariance of the frequency response of the identified model. That appears to be the source of the standard deviations for the magnitude and phase.
I will let you explore those at your leisure.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related Control Systems Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →