Hi
I Have to read a file using uigetfile by this code by i face the error…
[filename,pathname,d] = uigetfile('*.txt;');filepath=fullfile('pathname','filename');fid = fopen('filepath');mline1 = textscan(fid, '%f%s%s%f%f%s%s%f%f ','HeaderLines',5);fclose(fid);
Error:
Error using textscanInvalid file identifier. Use fopen to generate a validfile identifier.
By The Way I Already have done it without using uigetfile…
another point is data should be a number not a string cause they are going to plotted… What should i do to convert them???
Best Answer