MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   单元格数组中的简单索引 (https://www.labfans.com/bbs/showthread.php?t=24002)

poster 2019-12-10 20:48

单元格数组中的简单索引
 
我构建了一个简单的Matlab单元数组:

d1 = 1 2 3 4 5 d2 = 2 3 4 5 6 d3 = 3 4 5 6 7 d = [5x1 double] [5x1 double] [5x1 double] clear d1 d2 d3; 清除d1后,如何访问单元格数组d中的原始数组d1数据?如果我做:

>> d(1,:) ans = [5x1 double] 但是我要做的是发出以下命令:

d(what indexing goes here?) 并返回:

1 2 3 4 5

[B]回答:[/B]

没关系,我想通了:

d{1,1,:} 返回原始的d1信息。



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


所有时间均为北京时间。现在的时间是 09:08

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