MATLAB: How to plot a graph of two different 2D plots with data set: plot 1 (x,z) and plot 2 (y,z) in One 3D plot showing (x,y,z)

2d plots in 3ddifferent 2d plots in one 3d plot

For instance
For the first plot
x=linspace(-2*pi,2*pi);
z=sin(x);
For the second plot
y=linspace(-5*pi,5pi);
z=tan(y);
I want the two plots to be in the same 3D curve where the first one lies in x-z axes and the second in the y-z axes
THANK YOU VERY MUCH FOR YOUR HELP IN ADVANCE

Best Answer

...
plot3(x,zeros(size(x)),z)
hold on
...
plot3(zeros(size(y)),y,z)
Related Question