Borrar filtros
Borrar filtros

Output of Transfer Function in Sys ID App not the same as workspace

1 visualización (últimos 30 días)
rtn
rtn el 23 de Jun. de 2022
Respondida: Rajiv Singh el 9 de Ag. de 2022
The output of a model is different in the App than in the command line:
From the app
y_sim2 = sim( tf4 , merged(:,[],:));
y2 = y_sim2.OutputData;
realy = merged.OutputData;
%%
figure()
plot(y2{2}, 'Color', 'c')
hold on
plot(realy{2}, 'Color', 'k')
I am wondering why this occurs with the same transfer function and the same input!

Respuestas (1)

Rajiv Singh
Rajiv Singh el 9 de Ag. de 2022
In addition to the input, you need to ensure that you are using the same initial conditions. See:

Categorías

Más información sobre Model Predictive Control Toolbox en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by