Undefined function 'Input' for input arguments of type 'char'?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
(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 Commenti
Risposte (1)
Star Strider
il 11 Nov 2014
MATLAB is case-sensitive. Use input (lower-case ‘i’) instead.
0 Commenti
Vedere anche
Categorie
Scopri di più su Software Development Tools in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!