Symbolic expressions inside of array
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bram van Eijnatten
el 14 de Abr. de 2021
Comentada: Bram van Eijnatten
el 14 de Abr. de 2021
syms x
f(x) = x^2;
g(x) = x^3;
a = [f,g];
Imagine I have a code like this, and I wish to evaluate only f for a certain value, but not bring outside of the array. How can I do this? For instance, if now ask for a(3), matlab will output [9,27]. However, I want only want 9.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Conversion Between Symbolic and Numeric 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!