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

24 次查看(过去 30 天)
How can I specify the file path for csvwrite to write a file to?

采纳的回答

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

更多回答(1 个)

Piotr Balik
Piotr Balik 2018-7-16
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.

产品

Community Treasure Hunt

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

Start Hunting!

Translated by