matlab如何存储树结构
我才接触matlab,老师让用matlab完成树的孩子兄弟表示法,可是matlab里面没有指针,不知道怎么写。
[解决办法]
matlab的struct结构是最适合的了,楼主好好看.我给你个例子,你一看就懂
- Python code
s = struct('strings',{{'hello','yes'}},'lengths',[5 3])s = strings: {'hello' 'yes'} lengths: [5 3] 发布时间: 2012-04-18 15:01:59 作者: rapoo
matlab如何存储树结构
我才接触matlab,老师让用matlab完成树的孩子兄弟表示法,可是matlab里面没有指针,不知道怎么写。
[解决办法]
matlab的struct结构是最适合的了,楼主好好看.我给你个例子,你一看就懂
s = struct('strings',{{'hello','yes'}},'lengths',[5 3])s = strings: {'hello' 'yes'} lengths: [5 3]