%% Line Style and Width for Implicit Surface Plot
% Plot the implicit surface x^2 +y^2 - z^2 = 0 with different line styles for different values of z. For -5<z<-2, use a dashed line with green dot markers. For -2<z<2, use a LineWidth of 1 and a green face color. For 2<z<5, turn off the lines by setting EdgeColor to none.

syms x y z
f = x^2 + y^2 - z^2; 
fimplicit3(f,[-5 5 -5 5 -5 -2],'--.','MarkerEdgeColor','g')
hold on
fimplicit3(f,[-5 5 -5 5 -2 2],'LineWidth',1,'FaceColor','g')
fimplicit3(f,[-5 5 -5 5 2 5],'EdgeColor','none')