MATLAB Solving smbolic equation in matlab

  • Thread starter Thread starter quin
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
To solve a symbolic equation in MATLAB where one side is a constant and the other is an expression in terms of "m," users encounter errors when trying to sum symbolic parameters with numbers. The proposed solution involves checking various numerical values of "m" within a specified interval to determine when both sides of the equation are equal. Users are encouraged to modify their code to implement a loop that tests these values and identifies the converging "m." Posting the actual code can facilitate better assistance and troubleshooting. This approach allows for a practical numerical solution to the symbolic equation issue.
quin
Messages
50
Reaction score
0
dear users
I must do a lot of calculation and after that,I arrive to an equation in which one side is a number (forexample 330) and the other side of equation is expression in terms of "m"
I want to solve the equation for "m"
But when I ren my cide in MATLAB it gives error that a symbolic parameter cannot sum with nember and...
So I want to give different values of m (in a special Interval) in a numerical way and each time, it chek whether for that special "m" both sides of equation become equal or not,and when it finds that "m" that converg both sides of equation, it shows that m.
so haw can I do it? what should I add to my code?
thanks
 
Physics news on Phys.org
As a general rule, posting code is much easier than describing code.
 

Similar threads

Replies
5
Views
3K
Replies
10
Views
4K
Replies
2
Views
2K
Replies
4
Views
3K
Replies
1
Views
1K
Replies
3
Views
2K
Replies
4
Views
2K
Back
Top