Effacer les filtres
Effacer les filtres

How to plot a symbolic function?

1 vue (au cours des 30 derniers jours)
Max
Max le 22 Jan 2016
Commenté : Walter Roberson le 22 Jan 2016
Hey guys,
I would like to plot the following integral of a symbolic function:
beta_hat = 4.2915822
B_hat = 1861.6186657
C_hat = 58.9848692
syms t
y(t) = (exp(-B_hat/((heaviside(t)-heaviside(t-2000))*(330)+(heaviside(t-2000)-heaviside(t-3000))*(350)+...
(heaviside(t-3000)-heaviside(t-14000))*(390))))/C_hat;
I_new = int(y,t,[0,t])
f_new = (beta_hat*y(t).*(I_new(t)).^(beta_hat-1)).*exp(-((I_new(t)).^beta_hat))
ezplot(f_new,[0,4000])
But it doesn´t work. Does anybody have an idea, why?
  2 commentaires
Walter Roberson
Walter Roberson le 22 Jan 2016
You might need to
ezplot(matlabFunction(f_new),[0, 4000])

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by