I have a matrix in the form of a text file, I was hoping to scan it using MATLAB, and scan for the maximum value in between 2 points (1.5 and 2) and use that as a threshold.
I wrote a code but it rerturned an error.
[filename, pathname] = uigetfile('*txt', 'Pick text file');
data = dlmread(fullfile(pathname, filename));
t=data(:,1);
N = size(t,1);
m= max(data(1.5,2));
figure;
threshold = m;
Error in file (line 214) m= max(data(1.5,2));