matlab遍历cell和array的for循环写法
花括号{}的数据类型是cellnumlist={3,6,18}for k1 = 1:length(numlist) fprintf('Number at position %d = %6.2f\n', k1, numlist{k1})end中括号[]的数据类型是arrayv=[1,4,6,4,1];s=0;for i=1:length(v) s=s+v(i);enddisp(s);...