Unexpected fault in input
1 次查看(过去 30 天)
显示 更早的评论
For a reason i can not understand MATLAB constantly stops when i try to use input command in a for repeat!!!!
What's wrong with it?! please help
![Στιγμιότυπο οθόνης (6)_LI.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195515/%CE%A3%CF%84%CE%B9%CE%B3%CE%BC%CE%B9%CF%8C%CF%84%CF%85%CF%80%CE%BF%20%CE%BF%CE%B8%CF%8C%CE%BD%CE%B7%CF%82%20(6)_LI.jpeg)
3 个评论
Walter Roberson
2018-11-18
why does it think that line 267 to enter force is a comment ? There is no obvious % commenting it out . Does the line above it have a ... on it?
回答(1 个)
Stephen23
2018-11-17
编辑:Stephen23
2018-11-18
You did not enter any value, so FF is empty.
Any empty array cannot be expanded to fill the non-empty locations that you have specified with subscript indexing.
10 个评论
Walter Roberson
2018-11-18
With those inputs, for me it fails on line 379
Nodes=R(2:33,1:4);
This is because the textscan() inputs almost nothing. It is
C = textscan(fileID,'%f %f %f %f %f %f %f',N,'CommentStyle','//');
however the first line with 7 input values in the file is line 166 so the textscan fails almost immediately.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!