Please use MATLAB to answer the following Also please post c
Please use MATLAB to answer the following. Also please post coding and pictures - thank you!!
Solution
Answer :
%Creating A
A=[24:2:56];
%B=A([Initial value:No. of Columns to increment by:Size of the array])
B=A([2:2:size(A,2)]);
C=A([1:2:size(A,2)]);
%Appending A with 2A and assigned to D
D=[A 2*A];
n=length(D);
%Converting vector D to matrix of n/2,2
E=reshape(D,[n/2,2]);
% disp(A);
% disp(B);
% disp(C);
disp(D(15));
disp(n);
disp(E(6,2));
