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 commentaires

I reduced you time vector
tx = [0 1]; % Time vector
and succeeded
abhishek singh
abhishek singh le 6 Mar 2020
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.
darova
darova le 6 Mar 2020
The code for equations in PDF is correct
abhishek singh
abhishek singh le 6 Mar 2020
sumation of cos(n \Omega t) I have written is correct. I want to rescale time for lage value is it possible.
abhishek singh
abhishek singh le 17 Mar 2020
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.
abhishek singh
abhishek singh le 17 Mar 2020
I have checked the value of s1(:,1)

Connectez-vous pour commenter.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by