Making graph for quadratic function

26 views (last 30 days)
Julia Ellen
Julia Ellen on 6 Apr 2015
Commented: Khairul Azam on 19 Oct 2020
I'm very new to MatLab and I am having some difficulty creating the code and just understanding what to put where. I got my quadratic formula to run and loop(Ex 4.2), but now I've been asked to have a function to plot the graph of the formula.
These are my instructions:
Meet all the requirements of Ex 4.2 • Prompt the user for the vector of X values at which the quadratic will be evaluated. Note: the statement: XVec = input(‘Enter X vector’); Will quite happily deal with any valid Matlab vector specification. For example, inputting: -100:10:100 will give you a vector of numbers from -100 to 100 in increments of 10. • Plot the graph, label the X and Y axes, and add a title.
This makes me more confused as I don't know where to add these new statements, and the quadratic formula gives 2 values for x, how do I even get all of this input working??
  1 Comment
Khairul Azam
Khairul Azam on 19 Oct 2020
i realy tired to alive... can you give me some advice

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!