Borrar filtros
Borrar filtros

I can't import ScopeDataF to workspace matlab2021b

3 visualizaciones (últimos 30 días)
Sikhovangaye Mapape
Sikhovangaye Mapape el 23 de Nov. de 2021
Respondida: Akash el 18 de Abr. de 2024
% Выделить первый столбец
t = ScopeDataF(:,1);
% Выделить второй столбец
y = ScopeDataF(:,2);
% Определить СКО
stdFSD=std ( y )
% Определить дисперсию
varFSD=var ( y )
F =
1
-----
s + 1
Continuous-time transfer function.
stF =
0.7071
vF =
0.5000
bwF =
0.9976
tauF =
0.0630
This is the result i get after running stimulation in simulink and then code.
>> lab4_1b
Unrecognized function or variable 'ScopeDataF'.
Error in lab4_1b (line 2)
t = ScopeDataF(:,1);
>> lab4_1b
Unrecognized function or variable 'ScopeDataF'.
Error in lab4_1b (line 2)
t = ScopeDataF(:,1);

Respuestas (1)

Akash
Akash el 18 de Abr. de 2024
Hi Sikhovangaye,
Simulink returns all simulation outputs into a single `SimulationOutput` object. This includes signals, states, outputs, DSM logging, and data from scope and To Workspace blocks. To access these outputs as separate variables, you will need to disable the "Single simulation output" option.
For more information, you can refer to the following MATLAB Central discussion:-

Categorías

Más información sobre Verification, Validation, and Test en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by