Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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

回答(1 个)

Mark Sherstan
Mark Sherstan 2018-11-19
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)

此问题已关闭。

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by