Permalink
Cannot retrieve contributors at this time
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?
01_ME3255_repo/Problem 3
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10 lines (10 sloc)
308 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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(:)); |