Subs? Or another way to "remove" symbolic variable from equation
4 次查看(过去 30 天)
显示 更早的评论
Hello, good day to all of you.
I've got a problem. I've got » many « equations in my calculations with results (only numbers) which I need. All of the equations are dependent on the --first-- equation.
For example, my 15th equation will result in number result=700.
And in the end I need it to my
disp(['Text' num2str(result) 'N'])
But I -have to- add symbolit variable (F_dop) in my first equation. So the others will be functions of this variable.
In my 10th equation I have to do some partial derivative diff(function,F_dop) and use the result.
Then I say that F_dop = 0.
I expected that the 11th through 20th equations will be just numbers, because the F_dop = 0 so it doesn't have any effect on the calculation and I expeted that the 15th equation will be still result=700.
BUT
It's result=700+Fdop (for example...). So it's still! function of the symbolic F_dop.
So now, as I calculate almost averything, I have to write result = subs(result) to get the result = 700 number only that I'm able to put in the disp(['']) function.
Is there any way to say F_dop = 0 and make to program to compute with normal single / double and NOT symbolic?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!