How can I plot a function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi Matlab,
I need help to plot a function.
The function is the following:
f(x) = exp(-x/8.76*10^-6)*3.83*10^-4
>> h = ezplot('exp(-x./(8.76.*10.^6)).*3,83.*10.^-4') Error using inlineeval (line 15) Error in inline expression ==> exp(-x./(8.76.*10.^6)).*3,83.*10.^-4 Error: Unexpected MATLAB expression.
Error in inline/feval (line 34) INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);
Error in ezplotfeval (line 52) z = feval(f,x(1));
Error in ezplot>ezplot1 (line 467) [y, f, loopflag] = ezplotfeval(f, x);
Error in ezplot (line 145) [hp, cax] = ezplot1(cax, f{1}, vars, labels, args{:});
1 Kommentar
Antworten (2)
Walter Roberson
am 18 Mär. 2013
The error is because you used comma in 3,83 instead of decimal point 3.83
0 Kommentare
Masoud Ghanbari
am 17 Mär. 2013
Hi
syms x
h = ezplot(exp(-x./(8.76.*10.^6)).*(3.83).*(10.^-4))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Visual Exploration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!