Professional Documents
Culture Documents
>> 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.
>> dfx='12*x^2+6*x';
>> Ejercicio5(0.9,0.0001,fx,dfx);
r =
0.941651462507776
i =
>>