fplot keeps returning horizontal line

5 vues (au cours des 30 derniers jours)
David M
David M le 29 Oct 2017
Commenté : madhan ravi le 3 Juin 2018
I am trying to evaluate the constituents of a source of Californium 252 after a certain number of days. I have defined an expression in terms of other variables that I want to plot. But 'fplot' seems to only return a horizontal line at Y=0. There is no error message when I run the script. Any help is greatly appreciated.

Réponse acceptée

Karan Gill
Karan Gill le 30 Oct 2017
You are plotting a constant Atom_Cf_P with value 1.8235e-78. A horizontal line is the expected output. What were you expecting?
  2 commentaires
David M
David M le 30 Oct 2017
I was attempting to plot Atom_Cf_P as a function of T, time. I figured out i needed to use 'syms T' to define a variable for plotting. Thank you for your response. David
madhan ravi
madhan ravi le 3 Juin 2018
whenever you plot a function declare it using sym and then use fplot otherwise Matlab will give a horizontal line at y=0.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots 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