Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <je91u0$2ld$1@newscl01ah.mathworks.com> <jea5rc$di8$1@newscl01ah.mathworks.com> <jea7jl$ifo$1@newscl01ah.mathworks.com> <jeahid$gtm$1@newscl01ah.mathworks.com> <jebmn4$1g1$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1326031268 19040 172.30.248.47 (8 Jan 2012 14:01:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 8 Jan 2012 14:01:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:754094

"Sebastian " <sebastianpszczolka@gmail.com> wrote in message <jebmn4$1g1$1@newscl01ah.mathworks.com>...
> 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 ''