% Open the text file in read mode
fileID = fopen('yourfile.txt', 'r');
% Read the file content line by line
data = textscan(fileID, '%s', 'Delimiter', '\n');
lines = data{1};
% Close the file
fclose(fileID);
% Convert the required lines to numbers
startLine = 1450;
endLine = 1500;
relevantLines = str2double(lines(startLine:endLine));
% Find the maximum value
maxValue = max(relevantLines);
% Display the maximum value
disp(['The maximum value between lines ', num2str(startLine), ' and ', num2str(endLine), ' is: ', num2str(maxValue)]);The maximum value between lines 1450 and 1500 is: -Infinity