evaluating functions and plotting
Show older comments
evaluate and plot:

What I did for this question was I put each of the equations into a variable : eqn, eqn2 , eqn3 then from that I substituted the x values that apply to each equation and saved it as a , b , c. However I am unsure to how I would plot the graph into one as they are saved as 3 different variables.
First I assumed I would have to plot each graph separately but I am unsure if that is correct or not.
can I get some advice if plotting 3 different graphs for each variable is reasonable or there is another approach I should take.
syms x
eqn = 2*x^2
a = subs(eqn,x,(0<x)&(1>=x));
eqn2 = x^2 + 3
b = subs(eqn2,x,(1<x)&(3>=x))
eqn3 = -3*x
c = subs(eqn3,x,(3<x)&(5>=x))
Accepted Answer
More Answers (0)
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!