How to create a MATLAB struct that looks like a matrix?

1 visualización (últimos 30 días)
BuMatlab el 7 de En. de 2020
Comentada: BuMatlab el 9 de En. de 2020
Hello -
I would like to create a struct that looks like the attached example (i.e. with rows numbered in sequential order and columns labeled as field names with data at the intersections). Does anyone know how to do this? Everytime I create a struct I get the standard view in the variable window of listing struct field names with size of field as the value.
Any help would be greatly appreciated!
  5 comentarios
Sindar el 9 de En. de 2020
Why don't you want a table? They function similarly to structs, with dot-indexing
BuMatlab el 9 de En. de 2020
I did - and it works great. Thank you both!

Iniciar sesión para comentar.

Respuestas (0)


Más información sobre Structures 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