subject

Write a function in matlab called stats that accepts an nxn matrix. this function should compute the following for each column and return 5 row vectors - mat_mean, mat_median, mat_min, mat_max and mat_std_dev which contain the mean, the median, the minimum, the maximum and the standard deviation values for each column in the nxn matrix.

for example:

test result
a = [1 1 1; 3 4 5; 8 10 12];
[mean_a median_a min_a max_a std_dev_a] = stats(a);
disp(mean_a)
disp(median_a)
disp(min_a)
disp(max_a)
disp(std_dev_a)

4 5 6
3 4 5
1 1 1
8 10 12
3.6056 4.5826 5.5678

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
If you add the following to the query grid in an access query, what is it called? salestaxamt: [salestaxrate]*[totalsale] formula calculated field total calculation
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
This isn't about school but every time it tells me to watch an ad to unlock the answer to a question it prompts a survey and it just keeps loading. so i haven't been able to get answers for my tests in like a week.
Answers: 2
question
Computers and Technology, 24.06.2019 19:30
Dtp allows you to manipulate text boxes in the following ways. more than 1 answer. a.move them b.rotate them c.resize them d.all of the above e.none of the above
Answers: 1
You know the right answer?
Write a function in matlab called stats that accepts an nxn matrix. this function should compute the...
Questions
Questions on the website: 13722367