Getting Error in csvwrite

5 visualizzazioni (ultimi 30 giorni)
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)

Risposta accettata

Walter Roberson
Walter Roberson il 12 Gen 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 Commento
Muhammad Hammad Malik
Muhammad Hammad Malik il 14 Gen 2019
Thanks Walter, it work for me. i used first one and now can save. THANKS

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by