From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3-D Plane Intersection: using intersection as  x-axis for 2-D plots on each plane
Date: Sun, 8 Jan 2012 14:01:08 +0000 (UTC)
Organization: Xoran Technologies
Lines: 18
Message-ID: <jec7j4$ij0$>
References: <je91u0$2ld$> <jea5rc$di8$> <jea7jl$ifo$> <jeahid$gtm$> <jebmn4$1g1$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1326031268 19040 (8 Jan 2012 14:01:08 GMT)
NNTP-Posting-Date: Sun, 8 Jan 2012 14:01:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: comp.soft-sys.matlab:754094

"Sebastian " <> wrote in message <jebmn4$1g1$>...
> It will be OK if firstly i can draw cosinus fucntion on plane definied by me.
> How to draw plot on planes defineid by me and drew by surf

It's still a bit unclear to me why why you're turning to surface plotting commands when the thing you want to create (a plot of the cosine function) is a 1D space curve, not a 2D surface.

What about the following? It is a cosine curve occupying the plane spanned by xaxis and yaxis. How is this different from what you want? Note that you could also use PLOT3 instead of EZPLOT3.

xaxis=[-1 1 0]/sqrt(2);
yaxis=[0 0 1];

funx=@(t) t*xaxis(1)+cos(t)*yaxis(1);
funy=@(t) t*xaxis(2)+cos(t)*yaxis(2);
funz=@(t) t*xaxis(3)+cos(t)*yaxis(3);

ezplot3(funx,funy,funz,[-4*pi, 4*pi]); title ''