Filter löschen
Filter löschen

Save struct with struct

2 Ansichten (letzte 30 Tage)
Rita Barnabé
Rita Barnabé am 12 Jan. 2022
Beantwortet: Kojiro Saito am 13 Jan. 2022
Hi! , i want to save my structs with structs inside and the last struct has fields,
C025.NH.left =T_NH.C025.lef;
C025.NH.right =T_NH.C025.righ;
C025.HF.left =T_HF.C025.lef;
C025.HF.right =T_HF.C025.righ;
save('teste.mat','-struct','C025')
but i have this error
Execution of script save as a function is not supported:C:\Users\35191\OneDrive - Universidade de
Aveiro\Emotional transition - recognition\MATLAB -
functions\save.m
Warning: Function save has the same name as a MATLAB
builtin. We suggest you rename the function to avoid a
potential name conflict.

Antworten (1)

Kojiro Saito
Kojiro Saito am 13 Jan. 2022
save would be found under MATLAB_ROOT\toolbox\matlab\general\save.m.
But as the warning said, you have another save.m under your work folder and it occurs name conflict.
Please rename the save.m under "C:\Users\35191\OneDrive - Universidade de
Aveiro\Emotional transition - recognition\MATLAB -
functions" to another file name such as mysave.m, and the issue will be resolved.

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by