Matlab: Perform a procedure only for specific character arrays
问题 I have 60 different character arrays loaded in my workspace (Book01, Book02, ..., Book60). For example, Book01 is a 1x202040 char. I'm working in a script file, and trying to separate the last sentence("RandomInfoAtEnd") of Book45 until Book58: WholeBook = Book50; % Call Array for test for i = 1:60 book = eval(['Book' num2str(i)]); if i >= 45 && i <= 58 % Procedure to separate last sentence. Chr = convertStringsToChars(WholeBook); SearchedUnit = '.!?' ; % Sentence end punctuation idx =