フィルターのクリア

Info

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

How to running a script for some excel files containing array of some variables inside and get some outputs array in a new file which corresponds with each variable file?

1 回表示 (過去 30 日間)
Adi Purwandana
Adi Purwandana 2016 年 9 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Dear all,
I have one folder with some xlsx files inside. Each file containing cells array: depth (1st column), Temperature (2nd column), Salinity (3rd column). I have a script running for each file and then I've got some derived values (let say A, B, and C which corresponds to each depth from that operation.
What I wanna do is running the script for all files, make a new output file with the name of file as each file I have processed; so I don't need to process it one by one.
Here is my initiation in my previous script, still running for each files:
ctd=xlsread('file name'); % I think this definition just processes one file, isn't it?
%parameters
z=ctd(:,1);%depth t=ctd(:,2);%temperature s=ctd(:,3); %salinity
%% MAIN script, resulting some variables for the corresponding depth (z): A, B, C
end
best regards

回答 (0 件)

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by