Richard Kleinhenz <scubaman@us.ibm.com> wrote:
>
>
>
>
> I think I have a conceptual problem with matlab (scatter) plots. Can
> anyone tell me what I am missing? I supply the same real64 vector to x, y
> and z inputs but matlab complains that the 'matrix dimensions must agree'.
> Ghosh, how much better agreement than the same input can I get? Same
> problem with surf or similar plots, btw. I'll attach a short meaningless
> example demonstrating the error, and a jpg of what I want eventually.
Umm- you appear to be using "pcolor" which is not a scatterplot and
doesn't have x,y,z inputs. Check Matlab docs- I believe that you want
to input either a 3D array - pcolor(c) - or 2 vectors and a 2D array
- pcolor(x,y,c). This makes sense since pcolor() creates pseudo-color
plot so would need 2D array for the colors if you separately specify
x and Y.
Did you perhaps intend using a different Matlab function?
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
>
>
>
>
> I think I have a conceptual problem with matlab (scatter) plots. Can
> anyone tell me what I am missing? I supply the same real64 vector to x, y
> and z inputs but matlab complains that the 'matrix dimensions must agree'.
> Ghosh, how much better agreement than the same input can I get? Same
> problem with surf or similar plots, btw. I'll attach a short meaningless
> example demonstrating the error, and a jpg of what I want eventually.
Umm- you appear to be using "pcolor" which is not a scatterplot and
doesn't have x,y,z inputs. Check Matlab docs- I believe that you want
to input either a 3D array - pcolor(c) - or 2 vectors and a 2D array
- pcolor(x,y,c). This makes sense since pcolor() creates pseudo-color
plot so would need 2D array for the colors if you separately specify
x and Y.
Did you perhaps intend using a different Matlab function?
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Never mind, I understand... In the example I would have to supply 9 values
for C, each data point needs to be defined on a rectangular grid. Maybe to
achieve the desired results I have to put 0 into the missing gridpoints, so
they will be white, and play with the color mapping.
--
Regards,
Rich
===================
Richard Kleinhenz
Wafer Engineering
845-892-2617
scubaman@us.ibm.com
===================
Richard
Kleinhenz/Fishkil To: "VEE vrf" <vrf@it.lists.it.agilent.com>
l/IBM@IBMUS cc:
Subject: [vrf] matlab pcolor
10/21/2003 11:38
AM
Please respond to
Richard Kleinhenz
I think I have a conceptual problem with matlab (scatter) plots. Can
anyone tell me what I am missing? I supply the same real64 vector to x, y
and z inputs but matlab complains that the 'matrix dimensions must agree'.
Ghosh, how much better agreement than the same input can I get? Same
problem with surf or similar plots, btw. I'll attach a short meaningless
example demonstrating the error, and a jpg of what I want eventually.
(See attached file: color chart.jpg)(See attached file: test_pcolor.vee)
--
Regards,
Rich
===================
Richard Kleinhenz
Wafer Engineering
845-892-2617
scubaman@us.ibm.com
===================
---
You are currently subscribed to vrf as: scubaman@us.ibm.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email
"vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
#### color chart.jpg has been removed from this note on October 21, 2003 by
Richard Kleinhenz
#### test_pcolor.vee has been removed from this note on October 21, 2003 by
Richard Kleinhenz
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".