Do calculations in csv data one csv file at the time
Afficher commentaires plus anciens
I have several csv files. Want to perform calculations on the data in the csv file, for example calculating variable x. Then, I want one table with in the first column the filename of each csv file and then in the next column the calculated variable x. How can I do this? Newbie,so sorry for asking.
3 commentaires
Dyuman Joshi
le 27 Avr 2024
How does your query relate to MATLAB?
Can't the calculations be performed in the CSV file directly via Excel?
Martin Kneyber
le 27 Avr 2024
Dyuman Joshi
le 27 Avr 2024
Use readtable or readmatrix to import the data, and their counter-parts writetable or writematrix to export the data.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 27 Avr 2024
0 votes
See the FAQ for code samples to process a sequence of files:
1 commentaire
Martin Kneyber
le 28 Avr 2024
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!