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

1 回表示 (過去 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 Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by