Why do I get the error «unrecognized function or variable»
Ältere Kommentare anzeigen
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'
Antworten (1)
madhan ravi
am 17 Dez. 2023
Bearbeitet: madhan ravi
am 17 Dez. 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
3 Kommentare
Kaisar
am 17 Dez. 2023
madhan ravi
am 17 Dez. 2023
See my answer and use To Workspace block https://in.mathworks.com/matlabcentral/answers/2061362-why-do-i-get-the-error-unrecognized-function-or-variable#answer_1372892
Kategorien
Mehr zu Event Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!