Why do I get the error «unrecognized function or variable»

Simulink: ramp->trs fnc->scope. Scope: Data history -> ✅Save data to workspace -> Variable name: phi -> Format: Array. Command window: figure(1); subplot(2, 1, 1); plot(phi(:,1),phi(:,2)); unrecognized function or variable 'phi'

Respuestas (1)

madhan ravi
madhan ravi el 17 de Dic. de 2023
Editada: madhan ravi el 17 de Dic. de 2023
Usually you need to use dot indexing to get the variable data.
plot(out.phi(:, 1), out.phi(:, 2))
Use To Workspace block Save format to Array

Categorías

Productos

Versión

R2023b

Preguntada:

el 16 de Dic. de 2023

Comentada:

el 17 de Dic. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by