Pleae solve this problem using MATLAB 6 Create a script that
Pleae solve this problem using MATLAB
6. Create a script that performs the same function as repmat The only built-in commands you may use are input, size, and disp.Solution
create script that performs same function as repmat: clear all clc mat = input(\'Enter your matrix: \'); rows = input(\'Enter number of rows: \'); cols = input(\'Enter number of columns: \'); [m,n] = size(mat); newvec = zeros(rows*m,cols*n); for i = 1:size(newvec) for j = 1:size(newvec) newvec2(i,j) = i + j; end end disp(newvec2)