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 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
What need most led to the creation of the advanced research projects agency network? darpa wanted scientists to be able to collaborate and share research easily. darpa wanted american and russian politicians to be able to communicate. darpa wanted astronauts to be able to contact nasa and the white house. darpa wanted factory owners to be able to coordinate supply chains.
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
To remove text from a specific location and keep it to use again, you should select
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