Failed to convert character code error
이전 댓글 표시
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
Mathieu NOE
2021년 9월 8일
hello Elise
have you tried your code if the data is copied to your matlab working directory ? (if it's allowed ?)
Elise Baribault
2021년 9월 8일
Image Analyst
2021년 9월 16일
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.
답변 (3개)
Jan
2021년 9월 8일
0 개 추천
See: https://www.mathworks.com/matlabcentral/answers/561905-error-with-new-version-of-readtable-r2020a
This is a limitation of readtable.
Image Analyst
2021년 9월 13일
0 개 추천
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
2021년 12월 20일
0 개 추천
super: the "try" does not detect the error !. It will help!
카테고리
도움말 센터 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!