From: Matt Fig on
stpatryck <stpatryck(a)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.
From: Tom on
"Matt Fig" <spamanon(a)yahoo.com> wrote in message <h968sh$evd$1(a)fred.mathworks.com>...
> stpatryck <stpatryck(a)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!!!

It's unfortunate if you both were made to feel inferior during your formative education if you asked a question someone else perceived as remedial. But get over it and show others who know less some courtesy.
From: dpb on
Tom wrote:
> "Matt Fig" <spamanon(a)yahoo.com> wrote in message
> <h968sh$evd$1(a)fred.mathworks.com>...
>> stpatryck <stpatryck(a)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

--
From: Matt Fig on
"Tom " <slustu7(a)gmail.com> wrote in message
> 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!!!

There is a difference between a lack of empathy and exasperation. The OP was told exactly what the problem was, by other posters and MATLAB itself. The fact that the OP wasn't getting this point is why I said, "READ IT."
You see, this is emphasis is not derision. When someone doesn't get something, you emphasize the important part for them.