Filter löschen
Filter löschen

How to save a table as a CSV in a folder within the directory

13 Ansichten (letzte 30 Tage)
new2matlab
new2matlab am 19 Feb. 2020
Bearbeitet: Sindar am 19 Feb. 2020
How do i save a table from my workspace as a .csv within my directory, inside a subfolder, so that I can call on it later in my script?

Antworten (1)

Sindar
Sindar am 19 Feb. 2020
Bearbeitet: Sindar am 19 Feb. 2020
writetable(T,'subfolder/myData.csv','Delimiter',',')
if 'subfolder' doesn't already exist, you may need to make it:
mkdir('subfolder')
later, you can load with:
T = readtable('subfolder/myData.csv');
though it may be necessary to set certain options (see readtable documentation)

Kategorien

Mehr zu Search Path finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by