Plotting a function changing over time with different Phi_0

1 回表示 (過去 30 日間)
fartash2020
fartash2020 2018 年 4 月 25 日
編集済み: fartash2020 2018 年 4 月 25 日

I want to plot Z(t) vs t for different Phi_0( a 3D plot). A waterfall plot would be appropriate for this. Maybe we need Z_0 also. we may assign Z_0=0.15 and also Phi_0 from 0 to 2*pi. This is my code:

eps=100;

kappa=0.6;

Omega=1000;

gamma=10^(-5);

lambda=10000;

kd=6;

phi_0=3.14;

t=0:0.1:30;

Phi_dot=((lambda*z)-(((sqrt((1+z)./2)).*exp(1).^(-(kd*(sqrt(2*lambda*(1+z))))))).*(kappa*(sqrt((1-z)./(1+z)))-(sqrt((1+z)./(1-z)))))*(cos(phi_0))/2 + (eps.*cos(Omega.*t));

z_dot= -((((1+z)./2)).*exp(1).^-(kd*(sqrt(2*lambda*(1+z)))))*(1+kappa)*(sqrt(1-z^2))*(sin(phi_0))/2 + gamma.*(Phi_dot);

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by