Do calculations in csv data one csv file at the time
Show older comments
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 Comments
Dyuman Joshi
on 27 Apr 2024
How does your query relate to MATLAB?
Can't the calculations be performed in the CSV file directly via Excel?
Martin Kneyber
on 27 Apr 2024
Dyuman Joshi
on 27 Apr 2024
Use readtable or readmatrix to import the data, and their counter-parts writetable or writematrix to export the data.
Accepted Answer
More Answers (1)
Image Analyst
on 27 Apr 2024
0 votes
See the FAQ for code samples to process a sequence of files:
1 Comment
Martin Kneyber
on 28 Apr 2024
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!