Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
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

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by