help to find and display the mean,median for a matrix

1 view (last 30 days)
The table is # # # # # The first is year.then ace,...... How to find and display the mean of second column and the rest of it. For example, the mean of ace is I used disp(['the mean of ace is ',num2str

Accepted Answer

Image Analyst
Image Analyst on 5 Feb 2013
fprintf('The mean of ace = %f', mean(yourTable(:, 2)));
  8 Comments
Jan
Jan on 6 Feb 2013
Edited: Jan on 6 Feb 2013
fprintf('%d\n', sort(ace_data(:,3)))
THANH NGUYEN
THANH NGUYEN on 6 Feb 2013
ace_data =[years,ace,tropical_storm,hurricanes,major_hurricanes]; x=max(ace_data(:,2)); disp(sortrows(ace_data,-2))
not running, error line 41. I don't know what 's wrong.

Sign in to comment.

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!