heaviside not working in my script

2 vues (au cours des 30 derniers jours)
John  Sandoval
John Sandoval le 11 Sep 2015
Modifié(e) : Thorsten le 11 Sep 2015
Im trying to plot a step function in matlab and by looking around, the best thing to do is use heaviside function but some how it doesn't recognize it in my script. I went to search for functions in matlab, and that function doesn't even exist. How do you make a step function in matlab??
  1 commentaire
Thorsten
Thorsten le 11 Sep 2015
Modifié(e) : Thorsten le 11 Sep 2015

Connectez-vous pour commenter.

Réponses (1)

Steven Lord
Steven Lord le 11 Sep 2015
HEAVISIDE is a function in Symbolic Math Toolbox. Check the output of the VER function to see if you have this toolbox installed. If you don't, it's not a difficult function to write.
But if you want to create a stairstep plot, look at the STAIRS function.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by