Solving smbolic equation in matlab

  • Context: MATLAB 
  • Thread starter Thread starter quin
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on solving a symbolic equation in MATLAB where one side is a constant (e.g., 330) and the other side is an expression in terms of the variable "m". The user encounters an error indicating that a symbolic parameter cannot be summed with a number. The solution involves implementing a numerical approach to test various values of "m" within a specified interval to find when both sides of the equation are equal.

PREREQUISITES
  • Familiarity with MATLAB syntax and functions
  • Understanding of symbolic mathematics in MATLAB
  • Knowledge of numerical methods for root finding
  • Experience with variable intervals and conditional checks in programming
NEXT STEPS
  • Explore MATLAB's `vpasolve` function for numerical solutions of equations
  • Learn about MATLAB's symbolic toolbox for handling symbolic variables
  • Investigate numerical methods such as the bisection method or Newton's method
  • Review MATLAB's plotting functions to visualize the equation's behavior over intervals
USEFUL FOR

Mathematics students, engineers, and researchers who need to solve symbolic equations numerically in MATLAB.

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 6 ·
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K