How to find the constant of a line function

1 view (last 30 days)
Hello everyone !
I have an f(x,y) function which is basically a line of the form y = ax + b.
I want to extract the constant 'b' from this function.
As I know there is the function gradient(f) that can determine the 'a' constant.
Is there any similar way to extract the constant 'b'?
Any help appreciated !
Thanks in advance !
  1 Comment
Sam Chak
Sam Chak on 28 Jun 2022
Since you already know the f(x,y) function, , why not just take 'b' as it is? 🤔

Sign in to comment.

Accepted Answer

Matt J
Matt J on 28 Jun 2022
Evaluate the function at x=0.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!