MATLAB: Creating matrix with map object as elements matrix manipulation Hi, I am working on a problem of building a 10*3 matrix in which all the elements are map objects(with key and value). Is there a way to do this in Matlab? Thanks! Ruming Best Answer Only as a cell array. Related SolutionsMATLAB: Produce a cell array of cell arrays of element names If getElementNames is a function, you should use round brackets instead of curly brackets:element_names = getElementNames(elements); MATLAB: Object as a key in a map container No. Keys are restricted to:'Possible values are 'char', 'double', 'single', 'int32', 'uint32', 'int64', or 'uint64'.'So I guess if your class inherits from one of these then you can (I don't think I have tried this), but not otherwise. Related QuestionKarnaugh mapCreate One large containers.map from multiple mapsHow to map elementsMultiple numerics as one map key / Merge Objects based on parametersSet up a subkey for containers.map class
Best Answer