Filter löschen
Filter löschen

Getting Error in csvwrite

6 Ansichten (letzte 30 Tage)
Muhammad Hammad Malik
Muhammad Hammad Malik am 11 Jan. 2019
Hello all,
my problem is i am getting error when i wants to write some files in csv format. i am getting error in this line csvwrite(sprintf('Object%d.csv',i), y).dont know why i am getting this error. yesterday it was working well, but when i tried to work it again today, then it starts giving error. kindly guide me.thanks
due to this line 3 kind of errors are generating like:Error using dlmwrite (line 124)
Cannot open file Object1.csv.
Error in csvwrite (line 42)
dlmwrite(filename, m, ',', r, c);
Error in newwwwwwwwwwww (line 62)
csvwrite(sprintf('Object%d.csv',i), y)

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Jan. 2019
csvwrite(sprintf('F:\\kinectdata\\TomatoExtraction\\object%d.csv',i), y)
Or
csvwrite(sprintf('F:/kinectdata/TomatoExtraction/object%d.csv',i), y)
or
projectdir = 'F:\kinectdata\TomatoExtraction';
csvwrite( fullfile(projectd, sprintf('object%d.csv', i)), y)
  1 Kommentar
Muhammad Hammad Malik
Muhammad Hammad Malik am 14 Jan. 2019
Thanks Walter, it work for me. i used first one and now can save. THANKS

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by