Create a script to print on screen the product of matrix A

Create a script to print on screen the product of matrix A = magic(10) by a vector of ones in R10. Comment on the result. Linear Algebra Matlab problem

Solution

Script:

disp(\'Magic Matrix A : \');
A=magic(10);
disp(A);
B=ones(10,1);
disp(\'Ones Matrix B : \');
disp(B);
Product=A*B;

disp(\'Theri Product : \');
disp(Product);

Create a script to print on screen the product of matrix A = magic(10) by a vector of ones in R10. Comment on the result. Linear Algebra Matlab problemSolutionS

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site