摘要: 结构体由字段和值构成 1.用struct()函数创建 package=struct('item_no',123,'cost',19.9,'price',39.95,'code','g')package = 包含以下字段的 struct: item_no: 123 cost: 19.9000 pric 阅读全文
posted @ 2022-04-27 16:22 无敌小金刚 阅读(504) 评论(0) 推荐(0)
摘要: 1.元胞数组>> {23,'a',1:2:9,"hello"}ans = 1×4 cell 数组 {[23]} {'a'} {1×5 double} {["hello"]}>> [1 4 6 76]ans = 1 4 6 76>> {1 4 6 76}ans = 1×4 cell 数组 {[1]} 阅读全文
posted @ 2022-04-27 11:21 无敌小金刚 阅读(785) 评论(0) 推荐(0)