Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!news.ecp.fr!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: strange error message
Date: Fri, 16 Oct 2009 18:10:30 -0500
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <hbauqm$jog$1@news.eternal-september.org>
References: <ec15a73f-76ad-4291-a568-b615d121e464@v36g2000yqv.googlegroups.com> <02e88d83-1feb-4bd9-a9b5-97577c94c04d@o13g2000vbl.googlegroups.com> <h968sh$evd$1@fred.mathworks.com> <hban7r$ate$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX1/18Gi2oC0i600pa9bvzivyrDBSfhsUAqnEylGMAbzKP49xZmJb8TDjZgB/nSrufAtkREPmYzmcSz0BNq5aorXpZH6EP3iWUAxJ9+L1Ss0nsK9B+xsDlax6b4/Lma5WvsBgwGmW0U+OlQ==
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Fri, 16 Oct 2009 23:15:35 +0000 (UTC)
In-Reply-To: <hban7r$ate$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX19w0GLGheFb1WLyPjKgBQiEHQVavYEdXDY=
Cancel-Lock: sha1:DXg4JW5Nvb+gZoL1r1hE/X7+Dkk=
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
Xref: news.mathworks.com comp.soft-sys.matlab:577976


Tom wrote:
> "Matt Fig" <spamanon@yahoo.com> wrote in message
> <h968sh$evd$1@fred.mathworks.com>...
>> stpatryck <stpatryck@gmail.com> wrote in message <02e88d83-1feb-
>>> Nevertheless, all of the variables have the same dimensions, so
>>> why the error message?
>> 
>> 
>> You are not listening either to us or MATLAB.  The criteria is NOT
>> that the variables have the same dimensions!  Is THAT what the
>> error message says?  No.  Read it again, and read the doc for surf,
>> there is an example in the documentation.  Copy and paste the
>> example, then look at the output from whos.
>> 
>> doc surf   % READ IT.
> 
> I'm surprised by the lack of empathy in these replies.  Isn't this a
> help forum?  Why scan and post answers to threads asking for help,
> but make the asker feel like an idiot with replies like "READ IT" or
> "amazingly, just what it says!"??   Clearly MATLAB isn't as easy as
> you make it out to be if there's a site devoted to answering
> questions about the product!!!
...
Well, the very first response told OP _exactly_ what was wrong and 
included the needed dimensions.

c.s-s.m culture is pretty much a "help to learn" mentality as opposed to 
force-feed.  It's expected the learner/asker will do their part, too, 
and there seems to be a certain lack here of following direction.

OP--

ML means a 2D array when it says "matrix" and explicitly notes that a 
vector isn't.  An [nx1] (or [1xn]) doesn't qualify, either even though 
there are 2-dimensions; it must be mxn of the vector size.

see meshgrid

--