From: masdel on
Dear All,

i hv difficulties when plotting a point where the x axis and y axis
are vector, is there any way to do it?since the x axis and y axis is a
scalar.

for example, i hv vector a = (a1, a2, a3, ... , an), b =
(b1,b2,b3, .. , bn), where a1,a2, ..., an, b1,b2, ..., bn, are rand
value, and i hv value E(a,b).

how to plot value E(a,b) over a and b?

Should i use a norm?, i am confuse, If it is not possible, how to
represent a,b and E in a graph ?

thank you
From: Darren Rowland on
It sounds like a 3D plot would help.
Take a look at

doc meshgrid
doc surf

Hth
Darren
From: masdel on
On Mar 24, 1:56 pm, "Darren Rowland"
<darrenjremovethisrowl...(a)hotmail.com> wrote:
> It sounds like a 3D plot would help.
> Take a look at
>
> doc meshgrid
> doc surf
>
> Hth
> Darren
\

Thank you for your reply

Actually i hv tried it before, meshgrid and surf need a group of
scalar value (we can say it as a "vector") on their x,y, and z axis.
But in my case i need a group of vector for it axis

for example, in 2D, i can plot easily X = [1,2,3,4,5,6,7,8]; Y =
[F(x1),F(x2),F(x3),F(x4),F(x5),F(x6),F(x7),F(x8)]; using plot(X,Y);
In my case, i have a bunch of vector, say it, X = [A1,A2,A3,A4], where
A1 = [1,2,3,4,5,6]; A2 = [0.1,0.03,0.5,4,23,0.7]; A3 = [1,1,2,3,3,3];
A4 = [0.1,0.31,0.2,0.3,0.3,1.3], respectively. For the Y , i hv Y =
[2,3,4,5,6,7]; So, how to plot (X,Y) or represent it in a graph?

Thank you in advance

 | 
Pages: 1
Prev: lsqcurvefit
Next: Matlab &Tecplot