Command windows doesn't respond after entering a code.

4 ビュー (過去 30 日間)
Filip
Filip 2014 年 5 月 15 日
コメント済み: Walter Roberson 2016 年 4 月 14 日
Hi all,
This is probably a really basic mistake, but i couldn't find the solution on google.
I've encountered a problem in my command window.
after entering this:
>> A=[11 2 5 7 4 2 9];
>> groter=A>5
A really simple exercise in order to check which number in A is greater than 5, I got this in my history:
%-- 15/05/14 14:10 --%
Now the 2 arrows (>>) disappeared in the command window and it doen't respond to anything i type. I tried end like suggested a lot in loops, but I don't think this is a loop.
How can I solve this annoying thing?
Gr

採用された回答

per isakson
per isakson 2014 年 5 月 15 日
編集済み: per isakson 2014 年 5 月 15 日
What exactly did you enter?
.
I copy&paste
A=[11 2 5 7 4 2 9]; >> groter=A>5
including the characters, >>, to the command window and hit [Enter]. Matlab R2013a responded as you describe; the prompt ">>" did not appear. Cntr+C made Matlab return to its normal state.
I repeated this a few times.
.
Proposal: Restart Matlab and enter
A=[11 2 5 7 4 2 9]; % and press |Enter|
groter=A>5 % and press |Enter|
that should perform as expected
.
Conclusion: It seems as if the characters, ">>", in certain combinations confuses Matlab.
  1 件のコメント
Filip
Filip 2014 年 5 月 15 日
Thank you for the quick response. This works for me.

サインインしてコメントする。

その他の回答 (1 件)

Bertrand Egsbaek
Bertrand Egsbaek 2016 年 4 月 14 日
Hello, I have launched Matlab for the first time on my machine and I don't see the double arrows ">>" at all. Hence Matlab does not return anything. I have closed Matlab and relaunched it and it does not help. Do I need to parametrize anything? (I did not find any help on google or elsewhere).
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 4 月 14 日
Please contact Mathworks Support for free installation assistance.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeHelp and Support についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by