commands used in generating rows and columns in Matlab
Objective: % commands used in generating rows and columns in Matlab clear allclose allclc % for rowsr1=[2 4 6 8];r2(1,:)=[2 4 6 8];r3(1,:)=2:2:8;r4=2:2:8; % save these rows into other variablesr11=r1;r22=r2;r33=r3;r44=r4; % for adding new rows of existingr11(2,:)=[3 5 7 9];r22(2,:)=[3 5 7 9];r33(2,:)=3:2:9;r44(2,:)=3:2:9; % for columnsc1=[2…