How to extract idpoly property to workspace
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
demos serghiou
am 31 Dez. 2022
Beantwortet: Star Strider
am 31 Dez. 2022
Hi, how can I extract and put in my workspace variable A and NoiseVariance from idpoly to do further processing?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 31 Dez. 2022
There are several properties that can be retrieved from the System Identification Toolbox ‘data’ objects. See the documentation on idpoly and others for details.
Try something like this —
LD = load(websave('idpoly','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1248207/idpoly.mat'))
a = LD.a
Coefficients = a.A
Variable = a.Variable
Structure = a.Structure
t = linspace(0, 1.5, 150);
A = polyval(Coefficients, t);
figure
plot(t, real(A), 'DisplayName','Re(A)')
hold on
plot(t, imag(A), 'DisplayName','Im(A)')
plot(t, abs(A), 'DisplayName','|A|')
hold off
grid
legend('Location','best')
.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dynamic System Models 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!