For loop not working for my equation.

조회 수: 1 (최근 30일)
Giuseppe
Giuseppe 2014년 3월 26일
댓글: Giuseppe 2014년 5월 21일
This is my for loop.
for gra=m && yint=c
x = (gra-c)./ (m-2)
y = m.*x+c
end

채택된 답변

Image Analyst
Image Analyst 2014년 3월 26일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by