Effacer les filtres
Effacer les filtres

I can't import ScopeDataF to workspace matlab2021b

3 vues (au cours des 30 derniers jours)
Sikhovangaye Mapape
Sikhovangaye Mapape le 23 Nov 2021
Réponse apportée : Akash le 18 Avr 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);

Réponses (1)

Akash
Akash le 18 Avr 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:-

Catégories

En savoir plus sur Verification, Validation, and Test dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by