I can't import ScopeDataF to workspace matlab2021b

1 visualizzazione (ultimi 30 giorni)
% Выделить первый столбец
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);

Risposte (1)

Akash
Akash il 18 Apr 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:-

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by