Failed to convert character code error
Afficher commentaires plus anciens
My data is in the form of large .csv files on a USB. My code is on my laptop (with an active Matlab license). I added the USB drive to the path and tried to run my code, however, I get this error: "failed to convert character code". I am not sure what this means in terms of trying to grab data from a USB and run a code on a laptop?
3 commentaires
Mathieu NOE
le 8 Sep 2021
hello Elise
have you tried your code if the data is copied to your matlab working directory ? (if it's allowed ?)
Elise Baribault
le 8 Sep 2021
Image Analyst
le 16 Sep 2021
Open it in a text editor. Truncate off all but, say, 500 lines of it, and save it as a new file. Then attach that csv file here with the paperclip icon.
Réponses (3)
Jan
le 8 Sep 2021
0 votes
See: https://www.mathworks.com/matlabcentral/answers/561905-error-with-new-version-of-readtable-r2020a
This is a limitation of readtable.
1 commentaire
Elise Baribault
le 16 Sep 2021
Image Analyst
le 13 Sep 2021
0 votes
What is your code? You forgot to attach it or your data. Use an editor to chop off some rows of your csv text file if it's too big.
Have you tried the legacy csvread() function?
Martin Christian
le 20 Déc 2021
0 votes
super: the "try" does not detect the error !. It will help!
Catégories
En savoir plus sur Environment and Settings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!