If you have the names in a cell array
books = {'Book01', 'Book02', ..., 'Book59', 'Book60'};
Then you can extract the value in each name and check on that in your loop
for ii = 1:numel(books)
val = erase( books{ii}, 'Book' ); % Remove the 'Book' prefix
val = str2double( val ); % Convert to number
if val >= 45 && val <= 58
% do something in this range
end
end
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…