I'm quite new to matlab and I'm trying to grasp how to write functions and plot them as well.
One of my excercises in class asks me to:
"Make a function that plots the equation ax^2+bx+c=0, where a,b,c and x are used as input."
Does that mean I need to define values for a,b,c and x first, in order to plot anything?
Not sure how to best approach this in matlab.
My code so far looks like this:
y = a*x.^2+b*x+c;
But that doesn't plot anything as it is though..
I was hoping on some input on how to setup a good solution here, or maybe just a simple way by assigning values to the variables.. - Again, my coding skills are completely beginner, so any help is appreciated.