What is the problem with my code? How to do integration of matrix which consists integral variable?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Aravind Thangallapalli
el 13 de Nov. de 2021
Respondida: John D'Errico
el 13 de Nov. de 2021
syms x;
M = [x x^2];
fun = @(x) M;
integral(fun, 0, 12, 'ArrayValued', 1)
0 comentarios
Respuesta aceptada
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])
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!