MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在MATLAB数组中存储字符 (https://www.labfans.com/bbs/showthread.php?t=26548)

poster 2019-12-14 20:13

在MATLAB数组中存储字符
 
我想将字符和数字一起存储吗?使用单元格是唯一的方法吗?



[B]回答:[/B]

是的,除非您存储ASCII值,但我认为这不会非常有用。

编辑:还是结构数组?

a.num = [1 2 3] a.char = 'A'
我不知道你到底想达到什么目的??

[url=https://stackoverflow.com/questions/5246619]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 12:46

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.