Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Loop through the vector 6x5800 and save data in excel file.Hi

2 visualizaciones (últimos 30 días)
ShayanA
ShayanA el 19 de Nov. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi there,
i'm a biginner with matlab and i would like to import 6x5800 vector from excel to matlab and then want to counting the mean in every columns i imported.
then save the new value in the excel again.
Thanks for your respons
SA

Respuestas (1)

Mark Sherstan
Mark Sherstan el 19 de Nov. de 2018
Try this out (data file attached). When dealing with large data sets its better to use .csv then .xlsx.
clear all
data = dlmread('data2.csv');
for ii = 1:length(data)
out(ii) = mean(data(:,ii));
end
csvwrite('dataOut.csv',out)

La pregunta está cerrada.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by