- #1

- 11

- 0

## Main Question or Discussion Point

I need help with this while loop, i have to define x = -5:.1:5; m=2.5; b=7.5. I am supposed to use y=mx+b as an anonymous function and I need to solve for y using a while loop however I am haveing some problems this is the syntax I have, any help???

clc,clear,

y=@(x,m,b)m.*x+b

while m=2.5

b=7.5

x=-.5:.1:5

end

y

clc,clear,

y=@(x,m,b)m.*x+b

while m=2.5

b=7.5

x=-.5:.1:5

end

y