im tryng to solve it with the solver [t y] =ode45(@problem1,[0 50],[0 30]) but is not working

2 ビュー (過去 30 日間)
Da'Moon
Da'Moon 2019 年 5 月 14 日
コメント済み: Star Strider 2019 年 5 月 14 日
function [xprimes]=problem1(t,x)
m= .25;
C=.03;
g=9.800665;
xprimes=[ x(3); y(3);-((C*x(2))/m)*(sqrt(x(2)^2+y(2)^2)); -g-(C/m)*y(2)*sqrt(x(2)^2+y(2)^2)];
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by