editing a variable
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
I have a 1x50 structured array. However, there is only values in the last 10 cells.
Is it possible to turn this into a 1x10 structured array and how?
Réponses (3)
Rick Rosson
le 6 Août 2011
Please try:
Y = X(41:50);
OR:
Y = X(end-9:end);
HTH.
Rick
Fangjun Jiang
le 6 Août 2011
0 votes
Or X(1:end-10)=[]
James
le 6 Août 2011
0 votes
1 commentaire
Oleg Komarov
le 6 Août 2011
Please accept the answer you feel best answered your needs.
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!