for x=-3:-1
y=(-x^2+3)/2
end
for x=-1:3
y=-x^2+1
figure
hold on;
x=-3:3
plot(x,y,'--m.','MarkerEdgeColor','m');