How can I specify the file path for csvwrite to write a file to?

41 views (last 30 days)
How can I specify the file path for csvwrite to write a file to?

Accepted Answer

Paolo
Paolo on 16 Jul 2018
csvwrite('C:\Users\T4H14\Documents\myfile.csv',mydata)

More Answers (1)

Piotr Balik
Piotr Balik on 16 Jul 2018
You can always use hard way and do:
>> cd C:/'Program Files'/...
>> csvwrite('file.dat',M);
Because csvwrite documentation does not provide data path parameter.

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!