piecewise function only plotting half?

1 vue (au cours des 30 derniers jours)
Raphael Hatami
Raphael Hatami le 29 Août 2019
Commenté : Raphael Hatami le 31 Août 2019
Hello, I am very new to matlab and am trying to graph a function of mutiple piecewise conditions. However, it only seems to be graphing up to x=5 (I need it tot graph to x=10). I've tinkered with it, and it seems to only be count the a= piecewise, none of the others. Can anybody see why that is? thank you
  4 commentaires
Walter Roberson
Walter Roberson le 30 Août 2019
fplot(u, [min(x), max(x)])
Raphael Hatami
Raphael Hatami le 31 Août 2019
thanks Walter, this worked!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by