Escolar Documentos
Profissional Documentos
Cultura Documentos
%The dot operator makes it flexible to be able to work with a vector or scalars
ans = 120
%@sin as input
function_functions(@sin)
%@cos as input
function_functions(@cos)
%@sqrt as input
function_functions(@sqrt)
%@owncumsum_reloaded as an input(
function_functions(@owncumsum_reloaded)
%@sin as an input
fplot(@sin, [-pi pi])
%defining a variables
fplot(@(x) sin(x - pi/5)) %default is [-5 to 5]
feval(@sin, 3.2)
ans = -0.0584
ans =
2 5 13
●
n = 1
ans = 7.8540e+03
%using a function area_circle with two input
area_circle(50,i)
n = 2
ans = 1.1310e+06