Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Identical models in MATLAB and Simulink do not match each other

1 Ansicht (letzte 30 Tage)
Daniel Gelman
Daniel Gelman am 19 Aug. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I am noticing that discrete-time models I am using in Simulink do not match the same response in the Matlab environment.
For example.
sys = tf([3.332 4.679], [1 30.97 45.5], 'OutputDelay', 0.1);
sysd100 = c2d(sys,0.01)
sysd200 = c2d(sys,0.005)
figure;
opt = stepDataOptions('StepAmplitude',200);
step(sys, opt), grid on; hold on;
step(sysd100, opt); hold on; step(sysd200, opt);
sys is my continuous transfer function, sysd100 is the same function sampled at 100 Hz and sysd200 is sampled at 200 Hz. The step response is expected. I then reproduces the same transfer functions into Simulink, but am getting the following results
I am not an expert in Simulink so I ask the community on what would be the reason for this behaviour.
Thank you, Daniel

Antworten (1)

Daniel Gelman
Daniel Gelman am 22 Aug. 2016
[Answered]
Always be aware of significant figures. Even 0.0001 can make a difference in differential equations.

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by