Scalar structure required for this assignment.
Ältere Kommentare anzeigen
Sis =
1×82 struct array with fields:
Name
dailyprof
cc
gapp
ttrange
Ntradess
>> class(D_(:,2))
ans =
'cell'
>> Sis.On=D_(:,2);
Scalar structure required for this assignment.
hi ..how do I add it as a field?
2 Kommentare
James Tursa
am 2 Jun. 2023
Bearbeitet: James Tursa
am 2 Jun. 2023
What is the size of D_? Are you trying to add each cell element of D_(:,2) as a struct field in Sis?
shamal
am 3 Jun. 2023
Akzeptierte Antwort
Weitere Antworten (2)
James Tursa
am 2 Jun. 2023
Bearbeitet: James Tursa
am 2 Jun. 2023
This?
[Sis.On] = D_{:,2};
1 Kommentar
shamal
am 3 Jun. 2023
VBBV
am 2 Jun. 2023
0 Stimmen
Sis.On={D_(:,2)};
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!