I'm struggling to plot multiple functions on one figure.
Here is the code that I have:
syms t a;
a=0.9514;
F1=0.5*sqrt(3*t^2);
F2=-0.28375*t^2+1.155*a*(t-a)+1;
F3=1;
E1=diff(F1,t);
E2=diff(F2,t);
E3=diff(F3,t);
I want to plot E1, E2 and E3, each only within a certain range, to make a "composite" line.
I've tried plotting with ezplot
but that only plots the last one. plot
and fplot
give errors.
ezplot((3^(1/2)*t)/(2*(t^2)^(1/2)),[0,0.5*a])
hold on
ezplot((231*a)/200 - (231*t)/400,[0.5*a,2*a])
hold on
ezplot(0,[2*a,2.5*a])
(E3=0)
How can I get the functions to plot all at once?