필터 지우기
필터 지우기

Can not get range values for y to plot from function?

조회 수: 2 (최근 30일)
Brooks Nelson
Brooks Nelson 2017년 10월 12일
댓글: Cedric 2017년 10월 12일
I have created an m file. Within the file I have a function when I individually input my range of numbers I get the correct answer. I am trying to use the range of x from 0 to 600 and incremented at 100. The answers for y from the incremented x should give me values so I can plot on the graph. I get one output for y, why??
If I use lines 20 and 21 for plot it works?
Any help would be greatly appreciated.

채택된 답변

Walter Roberson
Walter Roberson 2017년 10월 12일
y = E-((A*(x.^2))/(636+x))
needs to be
y = E-((A*(x.^2)) ./ (636+x));
  댓글 수: 2
Brooks Nelson
Brooks Nelson 2017년 10월 12일
Thank you. Worked perfectly!!
Cedric
Cedric 2017년 10월 12일
Don't forget to accept the answer if it helped.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by