For loop not working for my equation.

1 visualización (últimos 30 días)
Giuseppe
Giuseppe el 26 de Mzo. de 2014
Comentada: Giuseppe el 21 de Mayo de 2014
This is my for loop.
for gra=m && yint=c
x = (gra-c)./ (m-2)
y = m.*x+c
end

Respuesta aceptada

Image Analyst
Image Analyst el 26 de Mzo. de 2014
You can't do that. Not sure what you're wanting to do but try to write it like this
for gra = graStart : graStep : graEnd
You give it 3 values, a starting value, an increment, and an ending value. You don't have that - you have a mess. Try to correct it.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by