You are on page 1of 1

MATLAB Command Window Page 1

>> f='4*b^3+3*b^2-6';
>> ezplot(f,[0,1]),grid on;
Warning: MATLAB has disabled some advanced graphics rendering features by switching to
software OpenGL. For more
information, click here.
>> Ejercicio5(0.9,0.0001,fx,fdx);
Unrecognized function or variable 'fx'.

>> fx=4*b^3+3*b^2-6;
Unrecognized function or variable 'b'.

>> fx=4*x^3+3*x^2-6;
Unrecognized function or variable 'x'.

>> fx='4*x^3+3*x^2-6';
>> dfx='12x^2+6x';
>> Ejercicio5(0.9,0.0001,fx,fdx);
Unrecognized function or variable 'fdx'.

>> Ejercicio5(0.9,0.0001,fx,dfx);
Error using inlineeval (line 13)
Error in inline expression ==> 12x^2+6x
Invalid expression. Check for missing multiplication operator, missing or unbalanced
delimiters, or other syntax error.
To construct matrices, use brackets instead of parentheses.

Error in inline/subsref (line 23)


INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);
%#ok<DILEVAL>

Error in Ejercicio5 (line 7)


r=x-f(x)/df(x);

>> dfx='12*x^2+6*x';
>> Ejercicio5(0.9,0.0001,fx,dfx);

r =

0.941651462507776

i =

>>

You might also like