Scalar structure required for this assignment.
Mostrar comentarios más antiguos
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 comentarios
James Tursa
el 2 de Jun. de 2023
Editada: James Tursa
el 2 de Jun. de 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
el 3 de Jun. de 2023
Respuesta aceptada
Más respuestas (2)
James Tursa
el 2 de Jun. de 2023
Editada: James Tursa
el 2 de Jun. de 2023
This?
[Sis.On] = D_{:,2};
1 comentario
shamal
el 3 de Jun. de 2023
VBBV
el 2 de Jun. de 2023
0 votos
Sis.On={D_(:,2)};
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!