What is the problem with my code? How to do integration of matrix which consists integral variable?

1 visualización (últimos 30 días)
syms x;
M = [x x^2];
fun = @(x) M;
integral(fun, 0, 12, 'ArrayValued', 1)

Respuesta aceptada

John D'Errico
John D'Errico el 13 de Nov. de 2021
M is a SYMBOLIC variable. You use int to integrate it, not integral.
syms x;
M = [x x^2];
int(M,[0,12])
ans = 

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by