Undefined function 'Input' for input arguments of type 'char'?
조회 수: 12 (최근 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!