www.pudn.com > matlab8.zip > exm0310_3.m
%exm0310_3.m 单下标寻访和reshape指令演示。 clear %清除内存变量 A=reshape(1:16,2,8) %变一维数组成 数组 reshape(A,4,4) %变 数组为 数组 s=[1 3 6 8 9 11 14 16]; %定义"单下标"数组 A(s)=0 %利用"单下标"数组对A的元素重新赋值