fid = fopen('data/data_file.csv');
all_messages = textscan(fid, format, 'delimiter', ',');
Returns:
error: ‘textscan’ undefined
How do you fix this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Core answer
The
textscanfunction was added to Octave in version 3.4.0, which was released in February 2011. Your best option, then, is to install a newer version of Octave. If, for some reason, that is not an option you could try usingfscanf(as suggested here).History
The
textscanfunction is not mentioned in the new function list in the version 3.4 release news, buttextscan.mis not present in the version 3.2.4 distribution.It appears to have been added as a result of this ticket (scroll to the bottom of the ticket), which was created as a result of this request.