fid =fopen(datafile.txt','r');
data = textscan(fid, '%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f');
plot3(data(:,5),data(:,6),data(:,7))
fclose(fid);
I am getting the error:
Error using
plot3
Not enough input arguments.
Where am I going wrong here? my data file is just columns of doubles (hence %f)
datais actually fetching the correct information from the text file?