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

조회 수: 24 (최근 30일)
T4H14
T4H14 2018년 7월 16일
답변: Paolo 2018년 7월 16일
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.

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by