Plot an equation in time span T=[0,t]
Afficher commentaires plus anciens
Hi,
I am about to plot an equation but i have 4 variables (including t), how can I plot this equation in domain of 0-T ?
clc
clear
close all
a=input('Please enter a : ')
b=input('Please enter b : ')
c=input('Please enter c : ')
t=input('Please enter t : ')
if(a*b/c>1)
for(0:t)
y=(e^a)*sin(c*t)/sqrt(b);
plot(t,y)
end
elseif(a*b/c<1 && a*b/c>0)
y=sin(a)*sqrt(b*t)/sin(c);
plot(t,y)
elseif(a*b/c<1)
y=cos(a)*e^(b*t)/(c);
plot(t,y)
end
thanks
Réponse acceptée
Plus de réponses (1)
Fatemeh Salar
le 9 Juil 2022
0 votes
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
