2ode using matlab without intial conditions

In summary, "2ode" in Matlab stands for "second-order differential equation" and refers to a type of equation involving a second derivative of a function. Matlab has the ability to solve these equations without initial conditions using the "odefun" function, which allows for separate specification of the equation and initial conditions. To specify a differential equation in Matlab, a function must be defined that takes in the independent and dependent variables and returns the derivative of y with respect to t. The purpose of using "odefun" is to provide more flexibility and ease in modifying the equations or initial conditions. However, there are limitations to using "odefun" as it may not work for complex equations or systems of equations and may not always provide the most accurate
  • #1
Sadeq
107
0

Homework Statement


I have question ,i want to solve ODE second order in matlab, but i want to get the answer in terms of constants, because i don't want to give MATLAB initial conditions

Is this possible

Thank you
 
Physics news on Phys.org
  • #2
I think this post should not be here ...
And, yes, you can do that by reading the documentation first:
http://www.mathworks.com/help/symbolic/mupad_ref/ode-solve.html
 
  • #3
sorry if the location is wrong and thank you
 

1. What is "2ode" in Matlab?

"2ode" stands for "second-order differential equation" and refers to a type of mathematical equation that involves a second derivative of a function. In Matlab, the "ode" function is used to numerically solve these types of equations.

2. Can I use Matlab to solve a second-order differential equation without initial conditions?

Yes, Matlab has the ability to solve second-order differential equations without initial conditions. This is done by using the "odefun" function, which allows you to specify both the differential equation and the initial conditions separately.

3. How do I specify the differential equation in Matlab?

To specify a differential equation in Matlab, you need to define a function that represents the equation. This function should take in the independent variable (usually denoted as "t") and the dependent variable (usually denoted as "y") as input parameters and return the derivative of y with respect to t.

4. What is the purpose of using "odefun" in Matlab?

The "odefun" function in Matlab is used to define the differential equation and initial conditions separately. This allows for more flexibility in solving differential equations and also makes it easier to modify the equations or initial conditions without having to rewrite the entire code.

5. Are there any limitations to using "odefun" in Matlab?

While "odefun" can be a useful tool for solving second-order differential equations, it does have some limitations. It may not work for more complex equations or systems of equations, and it may not always provide the most accurate solution. In these cases, it may be necessary to use other numerical methods or to write the code for solving the equation from scratch.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
Replies
3
Views
1K
  • Advanced Physics Homework Help
Replies
1
Views
950
  • Calculus and Beyond Homework Help
Replies
7
Views
843
  • Calculus and Beyond Homework Help
Replies
1
Views
633
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
689
  • Introductory Physics Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
11
Views
961
Back
Top