0
我如何提取对象属性的阵列从一个对象数组Matlab的 - 提取属性从对象阵列阵列
例:
(其中每个阵列内的对象的具有该属性?)classdef myClass
properties
myProperty = 1
end
end
-
myObjectMatrix(1:1000) = myClass()
myObjectMatrix(100:234).myProperty % what I thought would work but results in lots of individual results
[myObjectMatrix(100:234).. myProperty的]的作品,但是仅在一个维度。如果我有多个维度将结果“折叠”回来,则需要使用reshape()。
有没有更好的方法?
谢谢!