필터 지우기
필터 지우기

I can't import ScopeDataF to workspace matlab2021b

조회 수: 3 (최근 30일)
Sikhovangaye Mapape
Sikhovangaye Mapape 2021년 11월 23일
답변: Akash 2024년 4월 18일
% Выделить первый столбец
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에서 Verification, Validation, and Test에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by