Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

editing a variable

1 visualización (últimos 30 días)
James
James el 6 de Ag. de 2011
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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?

Respuestas (3)

Rick Rosson
Rick Rosson el 6 de Ag. de 2011
Please try:
Y = X(41:50);
OR:
Y = X(end-9:end);
HTH.
Rick

Fangjun Jiang
Fangjun Jiang el 6 de Ag. de 2011
Or X(1:end-10)=[]

James
James el 6 de Ag. de 2011
Thanks all!
  1 comentario
Oleg Komarov
Oleg Komarov el 6 de Ag. de 2011
Please accept the answer you feel best answered your needs.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by