Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
mat_1=randi([1,9],[10,10])
prod_mat=zeros(1,10);
for i=1:10
prod_num=1;
for j=1:10
prod_num=prod_num*mat_1(j,i);
end
prod_mat(i)=prod_num;
end
prod_mat
prod_mat=zeros(1,10);
for i=1:10
prod_num=1;
prod_mat(i)=prod(mat_1(:,1));
end
prod_mat
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more