我已經構造一個簡單的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;
如何訪問單元陣列d內原有的陣列數據D1,D1被清除後?如果我做的:
>> d(1,:)
ans =
[5x1 double]
但我想要做的是發出以下命令:
d(what indexing goes here?)
,並使其返回:
1 2 3 4 5
這裏有一個相關的問題,你可能會感興趣:[如何拼接和索引不同的單元格和數組在MATLAB中?](http://stackoverflow.com/questions/2662964/how-do-concatenation-and- indexing-different-for-cells-and-arrays-in-matlab) – gnovice 2010-10-15 18:17:11