Suppose I want to define a = X; b = Y, and then want the addition of a+b. How can I do that? I mean, how can I call a letter as a constant?

2 comentarios

jgg
jgg el 27 de En. de 2016
Please check over your question; there is no a or b in your problem statement. Additionally, are these numerical objects or symbolic objects? What is the context for your problem?
Mahbubur Rahman
Mahbubur Rahman el 27 de En. de 2016
Fixed it.

Iniciar sesión para comentar.

 Respuesta aceptada

Star Strider
Star Strider el 27 de En. de 2016

0 votos

‘How can I do that? I mean, how can I call a letter as a constant?’
If you want to do symbolic operations, you have to use the Symbolic Math Toolbox.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de En. de 2016

Comentada:

el 27 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by