Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!v36g2000yqv.googlegroups.com!not-for-mail
From: stpatryck <stpatryck@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: strange error message
Date: Mon, 14 Sep 2009 01:03:02 -0700 (PDT)
Organization: http://groups.google.com
Lines: 14
Message-ID: <ec15a73f-76ad-4291-a568-b615d121e464@v36g2000yqv.googlegroups.com>
NNTP-Posting-Host: 173.77.99.18
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1252915382 22735 127.0.0.1 (14 Sep 2009 08:03:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 14 Sep 2009 08:03:02 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v36g2000yqv.googlegroups.com; posting-host=173.77.99.18; 
	posting-account=XVCPqgoAAADjpQ-ieEMi86O6I-m1b7os
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) 
	Gecko/20090824 Firefox/3.5.3 GTB5,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:570191


Hello Folks,

I typed in these commands:
>> t=0:0.01:2*pi;s=t;
>> x=cos(t).*cos(s);y=cos(t).*sin(s);z=sin(t);
>> surf(x,y,z)

I got the following error message:

??? Error using ==> surf at 78
Z must be a matrix, not a scalar or vector.


What am I doing wrong???