Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
problem with matlab when trying to use a condition
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,I have a problem with Matlab, if I type a condition such as : if i=1:50 then or while i<= 50 matlab allows me to write other commands but nothing happens at the workspace.Even if I type clc in orer to delete everything ,matlab still remains the same.Any ideas ?
댓글 수: 0
답변 (1개)
jgg
2016년 4월 26일
You've opened a scoped environment. In order to end the scope, you need to use end:
if i == 1
% do stuff
end
If you don't use the end command, it will just continue to read in commands into the environment until you terminate it.
댓글 수: 1
jgg
2016년 4월 26일
This is not related to the question you've posted here. If this answer resolved your problem, accept it, then post this question as a new question instead.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!