I can't import ScopeDataF to workspace matlab2021b

1 次查看(过去 30 天)
% Выделить первый столбец
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);

回答(1 个)

Akash
Akash 2024-4-18
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:-

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by