I'm having problems running input functions in matlab, does anyone know why?

When I write a script in matlab that contains an input function it shows and error that it can't run the line. my script looks like this: P= input('enter a value for P:'); n= input('enter a value for n:'); . . . . and so on until I get to the end, but it won't run the first line. I get an error message saying an error occured in line one can't run input function. Any advice?

回答 (1 件)

Matt Fig
Matt Fig 2012 年 10 月 8 日

0 投票

There is nothing wrong with your use of INPUT, so something else is going on. Tell us the name of the script, and show how you are calling it, and the exact error message (copy-paste).

2 件のコメント

Miles Skinner
Miles Skinner 2012 年 10 月 9 日
thank you I figured it out.
Greg Heath
Greg Heath 2012 年 10 月 9 日
So ... you are not going to share your newfound enlightment with us??
Greg

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

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

質問済み:

2012 年 10 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by