Need help with storing values in a table and/or matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi all,
I am trying to find complex values, gain and gain in dB for a transfer function at specific frequenciies. For this purpose I used for loop and plotted the bode plot and nicholls chart using the DSP toolbox's inbuilt functions.
So, I want Matlab to produce answers like in the screenshot attached. I have of course attached my matlab file too. Please have a look and give me advice.
0 comentarios
Respuestas (2)
Seth Furman
el 22 de Mzo. de 2021
If you want to create a table like in the attached screenshot, you can use the table constructor. For example,
>> table([0.01;0.25],[-0.0040;-0.0084],'VariableNames',["Freq. (rad/s)","Real"])
ans =
2×2 table
Freq. (rad/s) Real
_____________ _______
0.01 -0.004
0.25 -0.0084
Ver también
Categorías
Más información sobre Get Started with Control System Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!