Help with MATLAB Create a matrix and label that matrix L wit
Help with MATLAB!
Create a matrix and label that matrix L with all even numbers larger than 30 and smaller than or equal to 42 in the first column and (with the same range) in the second column all odd numbers.
Solution
here number is greater then 30 and smaller then or equal to 42
so i will start the number 31 and end with 42 so matrix are
k=1;
j=1;
for i=31:42
if(mod(i,2)==0)
L(k++,1)=i;
else L(j++,2)=i;
end;
end;
display(L)
