Undefined function 'Input' for input arguments of type 'char'?
13 ビュー (過去 30 日間)
古いコメントを表示
(fxn)
function y=invest1(n)
global A P I
y = A - P*(1+I)^n;
end
(Script)
global P A I
P = Input(' Enter initial investment');
A = Input(' Enter target value for the investment');
I = Input(' Enter interest rate');
EDU>> Invest_1
Undefined function 'Input' for input arguments of type 'char'.
Error in Invest_1 (line 2)
P = Input(' Enter initial investment');
0 件のコメント
回答 (1 件)
Star Strider
2014 年 11 月 11 日
MATLAB is case-sensitive. Use input (lower-case ‘i’) instead.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Software Development Tools についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!