Matlab 2016B 新特性----string

来源:互联网 发布:上海cnc编程招聘信息 编辑:程序博客网 时间:2024/06/03 21:35

matlab终于也拥有了自己的string了,似乎是2016a引入的


allpath=genpath('K:\');
pathname=split(allpath,';');
whos pathname

  Name            Size            Bytes  Class     Attributes  pathname      159x1             20378  string              


string在这里的使用可参照cell类型

如果要提取stringList里面某条记录的具体内容char*,可以使用{i}索引符号


未完。。。

1 0