Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
%Creates a 6x6 matrix A_66 in which every element is the product of its two indices
%Then finds the mean and standard deviation
for i = 1:6
for j = 1:6
A_66(i,j) = i*j
end
end
fprintf('mean of A_66 =%1.2\nstdev of A_66=%1.2f\n', mean(A_66(:)), std(A_66(:)))
Mean = mean(A_66(:));
Dev = std(A_66(:));