From: Gerard Martin on
I want to plot the drain-source resistance of a JFET in 3D as a function of drain-source voltage and gate-source voltage.

The measurements I have taken have given me two columns of VDS and RDS values for every VGS value (0, -0.5, -1, -2, -3, -4). So i have columns called:

R0, R05, R1, R2, R3, R4, VDS0, VDS05, VDS1, VDS2, VDS3, VDS4

Each with 19 values. The VDS values are not the same as they were calculated separately.

I would really like a plot with VDS, VGS and RDS as the X, Y and Z axis respectively but I don't know how to do it.

I've used meshgrid for x and y before with z being a mathematical function of x and y, but not with measured data.

Thanks in advance!
From: us on
"Gerard Martin" <kaos713(a)gmail.com> wrote in message <httfho$t6u$1(a)fred.mathworks.com>...
> I want to plot the drain-source resistance of a JFET in 3D as a function of drain-source voltage and gate-source voltage.
>
> The measurements I have taken have given me two columns of VDS and RDS values for every VGS value (0, -0.5, -1, -2, -3, -4). So i have columns called:
>
> R0, R05, R1, R2, R3, R4, VDS0, VDS05, VDS1, VDS2, VDS3, VDS4
>
> Each with 19 values. The VDS values are not the same as they were calculated separately.
>
> I would really like a plot with VDS, VGS and RDS as the X, Y and Z axis respectively but I don't know how to do it.
>
> I've used meshgrid for x and y before with z being a mathematical function of x and y, but not with measured data.
>
> Thanks in advance!

a hint:

help surf; % <- and siblings...

us