Error message when computing integral: first input argument must be a function handle
Mostrar comentarios más antiguos
I'm trying to evaluate this integral, but when I enter this code:
syms x;
S= (6*(sin(x)^2)/(3*sin(x)+1));
l= integral(S,0,pi)
it gives me the error message: Error using integral, first input argument must be a function handle.
I'm a beginner Matlab user, so the answer is probably pretty straightforward, but any help is appreciated, thanks in advance!
Respuesta aceptada
Más respuestas (1)
n =0:0.5:10;
x = exp(-1*n);
subplot(3,3,1),stem(x)
title('exponential')
g = sin(n);
subplot(3,3,2),stem(g)
title('sinusoidal')
y =integral ((exp(-1*n).*sin(n)) ,0,n)
subplot(3,3,3), stem(y)
title('convolution')
i am dealing with this code but i am getting this error(Error using integral
First input argument must be a function handle.
Error in convolution (line 11)
y =integral ((exp(-1*n).*sin(n)) ,0,n))
can anyone help me with it
Categorías
Más información sobre Numeric Solvers en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!