function [y] = plotCableInTime( filename, nx, step) fid = fopen(filename); %garbage = fread(fid,1,'float'); % Skip reading of the first frames for i=1:step-1 fread(fid, [1, nx], 'float', 0, 'ieee-le'); %fread(fid, [rows, cols], 'float'); end %u = fread(fid, [rows, cols], 'float'); y = fread(fid, [1, nx], 'float', 0, 'ieee-le'); fclose(fid); plot(y); end