0
load t1.txt;
load t2.txt;
load t3.txt;
load t4.txt;
data=t1;
vector =[ 2 , 3 , 4 , 5 , 6 ];
for i = vector
[TempFlag, MemberInd] = ismember(i, vector);
fprintf('vector(%d) is %d\n', MemberInd, i);
scatter(data(:,1),data(:,2))
end
,如果我想要做的所有4個文件上面的循環,你將如何加載它們在載體或者什麼的,所以在每次迭代它其他數據?
所以我想避免:
data = t2;
(loop)
data = t3;
(loop)
等等
如果該名稱的文件不是數量它一樣嗎? – cMinor 2011-04-01 00:36:29
'A =負載ta.txt; B =加載te.txt; C =負載ti.txt; D =加載to.txt; E =負載tu.txt; sets = [ta,te,ti,to,tu];' – cMinor 2011-04-01 00:38:36
是'ta','tb'等所有相同的大小? – abcd 2011-04-01 01:12:51