【发布时间】:2011-09-07 01:38:05
【问题描述】:
将简单值放入元胞数组中进行测试。
model{1,1}=1;model{1,2}=2;model{1,3}=3;
model{2,1}=4;model{2,2}=5;model{2,3}=6;
i=2;//I want to remove the second column
temp={ model{:,1:i-1} model{:,i+1:size(model,2)} }
我想要这样的结果:
温度 =
[1] [3] [4] [6]
但我明白了:
温度 =
[1] [4] [3] [6]
我怎样才能做到这一点?
p.s:对于任何从事 Cell Arrays 工作的人,有一个很好的附加 here 的技术。
【问题讨论】:
标签: matlab cell-array