access data in nested arrays in a structure?

2 visualizaciones (últimos 30 días)
Najmeh Eskandari
Najmeh Eskandari el 8 de Feb. de 2019
Respondida: Walter Roberson el 8 de Feb. de 2019
Hi.
I want to calculate r through structure L:
L=struct('L0',{{[0,0],[0,0],[.5,1,2,3,5,4],[0]},{[0;1],[0,2],[-4,1,2,3,5,10],[2]}});
r=L.L0;
but r=L.L0 is wrong.
i want r={{[0,0],[0,0],[.5,1,2,3,5,4],[0]},{[0;1],[0,2],[-4,1,2,3,5,10],[2]}} but r is L0{1}.
How can i access to L0 ?
  2 comentarios
madhan ravi
madhan ravi el 8 de Feb. de 2019
Give an example of your desired output.
Najmeh Eskandari
Najmeh Eskandari el 8 de Feb. de 2019
I want :
r={{[0,0],[0,0],[.5,1,2,3,5,4],[0]},{[0;1],[0,2],[-4,1,2,3,5,10],[2]}};
but r=L.L0 is:
r={[0,0],[0,0],[.5,1,2,3,5,4],[0]};

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Feb. de 2019
{L.L0}

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by