I want the x-axis to represent the time and the y-axis to represent pressure. This is what I am working with now: fid=fopen('1.sec.txt','rt') for i=1:2, fgetl(fid),end M = dlmread('1.sec.txt',';',4,0) A=fscanf(fid,'%f',[2,inf])'; fclose(fid) subplot(2,1,1) plot(A(:,1),A(:,2))
And this is the error message the program gives me: Index exceeds matrix dimensions.
Error in txtfiltest (line 7) plot(A(:,1),A(:,2))
0 Comments
Sign in to comment.