Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

2 ビュー (過去 30 日間)
ShayanA
ShayanA 2018 年 11 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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