How to call constant in MATLAB?

3 views (last 30 days)
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 Comments
jgg
jgg on 27 Jan 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?

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 27 Jan 2016
‘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.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!