码迷,mamicode.com
首页 > 其他好文 > 详细

cell转为字符串

时间:2018-07-08 18:10:15      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:color   类型   ring   nan   字符串   cell   col   string   span   

如果s是一个cell如下:

s =
3×1 cell 数组
‘j‘
‘北jing‘
[ NaN]

s(2)返回cell类型,s{2}返回string类型

>> s(2)
  ans =
  cell
  ‘北jing‘


>> s{2}
  ans =
  北jing

cell转为字符串

标签:color   类型   ring   nan   字符串   cell   col   string   span   

原文地址:https://www.cnblogs.com/litthorse/p/9280660.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!