Lable dimensions of multidimensional array

4 次查看(过去 30 天)
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' }
Thanks in advance!

回答(1 个)

Matt J
Matt J 2020-7-9
编辑:Matt J 2020-7-10
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,

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by