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

8 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Image Analyst
Image Analyst el 5 de Feb. de 2013
fprintf('The mean of ace = %f', mean(yourTable(:, 2)));
  8 comentarios
Jan
Jan el 6 de Feb. de 2013
Editada: Jan el 6 de Feb. de 2013
fprintf('%d\n', sort(ace_data(:,3)))
THANH NGUYEN
THANH NGUYEN el 6 de Feb. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by