MATLAB: Matlab exercise help me exampleexercise Hello everyone, I need help in an exercise I need to know how I can get the pairs of a square matrix of i, j (no, the even numbers of the matrix) Best Answer Try this:output = [A(1,1), a(1,3), A(2,2), A(3,1), A(3,2)]Or, for odd-size matricesoutput = A(1:2:end); Related SolutionsMATLAB: Matrix Elements Manipulation Using Matlab a=zeros(4,7);a(:,1:2:end)=A;a(:,2:2:end)=B;b=zeros(3,7);b(:,1:2:end)=C;b(:,2:2:end)=D;out=zeros(7);out(1:2:end,:)=a;out(2:2:end,:)=b MATLAB: Help in numerical exercise If you look at this site in the section called Anecdotes" you will see a short cut to obtaining your answer. It doesn't require matlab at all.http://en.wikipedia.org/wiki/Carl_Friedrich_Gauss Related QuestionHelp with Basic Matrix ExerciseHelp with a simple exerciseI want to get a combination from a table of cell by fonction (combntns), but i dosen’t work ,anyone can help me ,thank youHow to change the matrix size and value in matlab code
Best Answer