%% clear commands
 
delete(allchild(0));close all;
clear;
clc;


plot3([-10;10],[-10;10]*0,[-10;10]*0,'k');hold on;
plot3([-10;10]*0,[-10;10],[-10;10]*0,'k');hold on
plot3([-10;10]*0,[-10;10]*0,[-10;10],'k');hold on
text([-10;10],[-10;10]*0,[-10;10]*0,'X');hold on;
text([-10;10]*0,[-10;10],[-10;10]*0,'Y');hold on
text([-10;10]*0,[-10;10]*0,[-10;10],'Z');hold on
xlabel('X');
ylabel('Y');
zlabel('Z');
t=[-3.14:.2:3.14];
x=t;
y=-t+2;
z=sin(t );
plot3(t,-t+2,t.^2);hold on

[u,v]=meshgrid(-2:2,-2:2);
surf(u,-u+2,v)
