MATLAB: How to read a data from a text file. I want to read X and Y values from this text file and save them

read text file

Best Answer

Run these lines
f = fopen('test.txt');
data = textscan(f, 'X="%f" Y="%f" ZOOM="%f"','HeaderLines', 1);
fclose(f);
data = [data{:}];