MATLAB Answers

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

179 views (last 30 days)
T4H14
T4H14 on 16 Jul 2018
Answered: Paolo on 16 Jul 2018
How can I specify the file path for csvwrite to write a file to?

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

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.

  0 Comments

Sign in to comment.

Sign in to answer this question.