How to insert values for a symbolic variable
311 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
John Miller
el 22 de Jun. de 2020
Comentada: madhan ravi
el 22 de Jun. de 2020
I'm calculating some gradients with symbolic variables and after that I want to insert values for the variables.
So I have a function depandent of multiple variables x(1),..., x(20)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/320164/image.png)
and I want to insert some values for the variables, something like
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/320167/image.png)
such that the function replaces all the x(1) values with 10 and x(20) values with 14
How is that done? Should be simple but I can't find anything helpful explaining how to solve this
0 comentarios
Respuesta aceptada
Más respuestas (1)
Ver también
Categorías
Más información sobre Symbolic Variables, Expressions, Functions, and Preferences en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!