Failed to convert character code error

7 次查看(过去 30 天)
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 个评论
Elise Baribault
Elise Baribault 2021-9-8
Hi Mathieu,
I cannot copy the data to my laptop because the file size is too large. Thus I need to have the data on an external drive.
Image Analyst
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
Jan 2021-9-8

Image Analyst
Image Analyst 2021-9-13
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
Martin Christian 2021-12-20
super: the "try" does not detect the error !. It will help!

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by