What data structure does the first line of code create? also what do the second and third lines of code do?
Arr=[];
Arr.N=200;
Arr.R=1

 Respuesta aceptada

Star Strider
Star Strider el 7 de Jun. de 2018

0 votos

It first creates ‘Arr’ as an empty array, the creates ‘Arr’ as a structure with fields ‘N’ and ‘R’, and assigns values to them.
See the documentation on Create Structure Array (link) and struct (link) for details.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 7 de Jun. de 2018

Editada:

el 7 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by