fplot keeps returning horizontal line

조회 수: 7 (최근 30일)
David M
David M 2017년 10월 29일
댓글: madhan ravi 2018년 6월 3일
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.

채택된 답변

Karan Gill
Karan Gill 2017년 10월 30일
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
David M
David M 2017년 10월 30일
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 2018년 6월 3일
whenever you plot a function declare it using sym and then use fplot otherwise Matlab will give a horizontal line at y=0.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by