Scalar structure required for this assignment.
Show older comments
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 Comments
James Tursa
on 2 Jun 2023
Edited: James Tursa
on 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
on 3 Jun 2023
Accepted Answer
More Answers (2)
VBBV
on 2 Jun 2023
0 votes
Sis.On={D_(:,2)};
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!