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

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.

 Respuesta aceptada

y = E-((A*(x.^2))/(636+x))
needs to be
y = E-((A*(x.^2)) ./ (636+x));

2 comentarios

Thank you. Worked perfectly!!
Cedric
Cedric el 12 de Oct. de 2017
Don't forget to accept the answer if it helped.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Oct. de 2017

Comentada:

el 12 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by