Unexpected fault in input

조회 수: 2 (최근 30일)
eden hazard
eden hazard 2018년 11월 17일
댓글: Walter Roberson 2018년 11월 18일
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
  댓글 수: 3
Walter Roberson
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?
eden hazard
eden hazard 2018년 11월 18일
line 267 is a comment but you can not see the %
i want to put a [Fx,Fy,Fz] vector but it crashes in the next line before i even put the values in the input command.

댓글을 달려면 로그인하십시오.

답변 (1개)

Stephen23
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
eden hazard
eden hazard 2018년 11월 18일
haha choose as following
1.crane
2.6065
3.NO
4.in ''how many loads'' write 2
5. then click on a node(point) in the plot and press enter
Walter Roberson
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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by