Can not get range values for y to plot from function?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Brooks Nelson
am 12 Okt. 2017
Kommentiert: Cedric
am 12 Okt. 2017
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.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 12 Okt. 2017
y = E-((A*(x.^2))/(636+x))
needs to be
y = E-((A*(x.^2)) ./ (636+x));
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!