MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by THANH NGUYEN
on 5 Feb 2013

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

*No products are associated with this question.*

Answer by Image Analyst
on 5 Feb 2013

Accepted answer

fprintf('The mean of ace = %f', mean(yourTable(:, 2)));

Show 5 older comments

THANH NGUYEN
on 6 Feb 2013

I really don't know how to do it. I says sort the table by ACE (descending) fprintf('%d %d %d %d', sort(ace_data(:,3))); it display all the number in one row only.

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.

## 0 Comments