I am trying to declare a symbolic variable in MATLAB using this code:
syms a;
I do my calculations on this variable, and everything is fine. But my problem is that I do not know how I can assign a number to a variable and get the result as a number. For example, the answer of my code
answer=exp(-10*a);
For example, I want to give 40 "a" and get the answer as
answer = 1.9152e-174
I really appreciate any suggestion.
source share