Scalar structure required for this assignment.
Afficher commentaires plus anciens
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 commentaires
James Tursa
le 2 Juin 2023
Modifié(e) : James Tursa
le 2 Juin 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
le 3 Juin 2023
Réponse acceptée
Plus de réponses (2)
James Tursa
le 2 Juin 2023
Modifié(e) : James Tursa
le 2 Juin 2023
This?
[Sis.On] = D_{:,2};
1 commentaire
shamal
le 3 Juin 2023
VBBV
le 2 Juin 2023
0 votes
Sis.On={D_(:,2)};
Catégories
En savoir plus sur Structures dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!