MATLAB: Error in Updating the text file

error in updating the text file

IntString2 = sprintf('<FileName>',cFile(i).name,'</FileName>')
and i get the below error message
"Subscript indices must either be real positive integers or logicals."
Would be great on any suggestions

Best Answer

  • Probably i starts from 0, it should start from 1 and it should be integer at any circumstances. This happens probably in a for loop. Please check it.
  • Related Question