Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:40, math31343
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, kenken2583
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
image
Computers and Technology, 23.06.2019 11:30, leapfroggiez
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
Do you know the correct answer?
Write a function in matlab called stats that accepts an nxn matrix. this function should compute the...

Questions in other subjects:

Konu
Mathematics, 27.08.2019 17:40
Konu
Advanced Placement (AP), 27.08.2019 17:40
Konu
Geography, 27.08.2019 17:40