Azzera filtri
Azzera filtri

For loop not working for my equation.

1 visualizzazione (ultimi 30 giorni)
Giuseppe
Giuseppe il 26 Mar 2014
Commentato: Giuseppe il 21 Mag 2014
This is my for loop.
for gra=m && yint=c
x = (gra-c)./ (m-2)
y = m.*x+c
end

Risposta accettata

Image Analyst
Image Analyst il 26 Mar 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.

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by