"DUNSMORE,JOEL (A-Sonoma,ex1)" <joel_dunsmore@agilent.com> wrote:
> Thanks for the reply, that helped a bit, but not enough
>
> I wanted to see the Z data output. Is there a matlab function, such
> as the VEE cliplower or clipupper, that I can use to turn NaN to something like 1e12.
> Would Matlab know to clip NaN?
>
I'd expect that what you would want to do is to write a function in Matlab using isnan() that would look at your array of values and figure out which ones are NaN-- and then substitute those values with a real64. This should be fairly simple.
Now of course the hard part may be deciding in general what value to substitute in. NaN is after all an unknown-- do you make it
1e-12 or e+9 or 42 ? You'd need to know this based on the results you expect.
Stan
PS- Joel- we have support contract with Mathworks, so you may
want to ask them how to implement the Nan substitution.
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
> Thanks for the reply, that helped a bit, but not enough
>
> I wanted to see the Z data output. Is there a matlab function, such
> as the VEE cliplower or clipupper, that I can use to turn NaN to something like 1e12.
> Would Matlab know to clip NaN?
>
I'd expect that what you would want to do is to write a function in Matlab using isnan() that would look at your array of values and figure out which ones are NaN-- and then substitute those values with a real64. This should be fairly simple.
Now of course the hard part may be deciding in general what value to substitute in. NaN is after all an unknown-- do you make it
1e-12 or e+9 or 42 ? You'd need to know this based on the results you expect.
Stan
PS- Joel- we have support contract with Mathworks, so you may
want to ask them how to implement the Nan substitution.
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
I'm stuck with a Matlab/Vee problem. I have a data set with X,Y and Z values (X = actual input power, Y=frequency, Z=compression).
Because X is measured input power, the values of Pin are different at different frequencies (due to mismatch effects). So, I have this data set that has Z data as a function of regularly spaced data (Y) and irregularly spaced data (X).
I want to make a surface plot, and I found in VEE/Matlab help the function "griddata" which seems to be the ticket for creating what I need. BUT, I can't get it to return anything other than a Matlab error. In ultimate frustration, I tried to repeat exactly the example from the help file:
rand('seed',0)
x = rand(100,1)*4-2; y = rand(100,1)*4-2;
z = x.*exp(-x.^2-y.^2);
yi=-2:.25:2;
[XI,YI]=meshgrid(yi,yi);
ZI = griddata(x,y,z,XI,YI);
This was all in a Matlab script object, with an output variable of each name (x,y,z,yi,XI,YI,ZI) nothing else in the program. The error message returned says somthing like
"MATLAB data contains a floating point NaN or +/- infinity" Any ideas of what I need to do to get the example to work?
Thanks, Joel
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".