Lable dimensions of multidimensional array
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi !
I have a 4D array of cells. each dimension corresponds to a variable defined in a loop
How can I assign lables to each dimension so that if the user want the data in B{1,2,19,5} index, they can call for example B{ 'range=4' , '4V' , '5A' , '3m' }
The same question has been asked here https://de.mathworks.com/matlabcentral/answers/114559-name-and-label-dimensions-of-an-array but no answer yet.
Thanks in advance!
0 comentarios
Respuestas (1)
Matt J
el 9 de Jul. de 2020
Editada: Matt J
el 10 de Jul. de 2020
There is no quick way to enable this, I'm afraid. You would have too write your own customized data object type and provide a subsref method to process the indexing syntax that you want,
2 comentarios
Matt J
el 13 de Jul. de 2020
This example may help, if you are determined to write your own class.
Ver también
Categorías
Más información sobre Axis Labels 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!