Matlab structure of struct
조회 수: 6(최근 30일)
I'd like to create structures and store them, but I don't know how to do it. For example, for a function, we write something like
and then we write the different operations. This allows us to write MyValue=MyFunction(...). I'd like to do the same for structures, something like MyObject=MyStruct(...). Could someone give me a reference document which explains how to do this for structures please? So far, the only thing I found is how to create structures from the command window. Thanks!
Image Analyst 2021년 11월 12일
Not sure what you mean. You can call the function whatever you want and it can take in and return whatever you want. If you want to create a custom structure, there is already a function called struct() to do that.