3solve using matlab codes Problem 3 20 points Write a progra
3.solve using matlab codes
Problem 3: (20 points) Write a program that generates M, a 2 x 9 matrix, in which the first column contains numbers from 1 to 9 and the second column contains the cubic root of the first column. Create an Excel file called Datafile2 and store your matrix in it. Solution
x = zeros(9,2);
x(:,1) = 1:9;
x(:,2) = x(:,1).*x(:,1).*x(:,1);
xlswrite(\'Datafile2\',x)
