Importing multiple csv files with header as a table while preserving their names manually?

3 ビュー (過去 30 日間)
Thomas Kok
Thomas Kok 2018 年 1 月 14 日
回答済み: Darshan Ramakant Bhat 2018 年 1 月 17 日
Hi there,
I'm a little lost, as I'm pretty certain that this question has been asked before, but I haven't yet been able to stumble upon the answer, and I was wondering if it were possible to import multiple csv files into MATLAB as a table while still preserving their names?
For example, the following is an example of the CSV files that I'm attempting to convert:
TimeInSecs,CurrentInMiliamps
0.1,0.008
I've tried writing a loop with read2table, but it then returns a large 20+ by 1 cell, within which contains about 2000+ readings, while I'd prefer to work with a few variables with the names of the CSV files so I may then analyse each separately.
Oh, and I was hoping to learn to do this manually, I believe that MATLAB already can do better with the help of their Import Wizard!
Thanks in advance for any advice or help!

回答 (1 件)

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2018 年 1 月 17 日

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by