Differential equation using ode113

I have made a code for non-linear oscillator and used it solution x(t) in the coupled differential equation.see the code is it right. Some one please help.

6 Comments

I reduced you time vector
tx = [0 1]; % Time vector
and succeeded
I written that code from pdf file i have given. I am asking about the code is it right or not and I want to rescale the time is there any way to do that.
The code for equations in PDF is correct
sumation of cos(n \Omega t) I have written is correct. I want to rescale time for lage value is it possible.
When I am giving time t=[0:1:20] the value of s1 is different then when I provide t=[0:0.1:20] what is the problem in code.
I have checked the value of s1(:,1)

Sign in to comment.

Answers (0)

Tags

Asked:

on 5 Mar 2020

Commented:

on 17 Mar 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!