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, 22.06.2019 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
You know the right answer?
Write a function in matlab called stats that accepts an nxn matrix. this function should compute the...
Questions
question
English, 03.03.2021 23:20
question
English, 03.03.2021 23:20
question
Business, 03.03.2021 23:20
Questions on the website: 13722363