Error in Updating the text file

1 次查看(过去 30 天)
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

采纳的回答

Birdman
Birdman 2017-12-26
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.
  1 个评论
Walter Roberson
Walter Roberson 2017-12-26
Probably i was not assigned a value and has its default association with sqrt(-1)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by