you can use your own written matlab code in .m files in VEE matlab
script.
You need to have a matlab registered version installed in the same computer
where you use VEE.
Then you must check the combination of the versions of VEE and matlab (in
the agilent web site there is a table showing the allowed combination for
this purposes.
Then you must put the .m file (e.g. average) in a folder which is in the
path o the matlab version you're using (which you set in Matlab: File -->
Set path ...).
The first time you launch the matlab VEE script you should see that VEE
will register your matlab version as the engine to execute the matlab
scripts in VEE and finally everything should works.
But, be careful on the versions pairs allowed !.
Bye,
Martino
-------------------------------------------------------------------------------------------------
Ing. MARTINO ROSIN
Calearo Antenne SpA
ISOLA VICENTINA (VI) - Italy
E-mail: martinorosin@calearo.com
-----Original Message-----
From: ext-michael.simon@nokia.com [mailto:ext-michael.simon@nokia.com]
Sent: Wednesday, December 14, 2005 7:00 AM
To: VRF
Subject: [vrf] Matlab
Hello,
I have a question concerning the Matlab script:
How can I use functions in Matlab? I want to define a function in a
.m-file
(e.g. function y = average(x) .....in average.m) and I want to load this
function somehow into my Matlab script in Vee and use it like: a=
average(vect).
I couldn't find out how to load a .m-file into Matlab script. Also it was
not able to define the function in the script, because the codeword
"function" gives an error message.
Does anybody know more about this?
Michael
---
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@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 "www.oswegosw.com/vrf_archive/".
Matlab called mean, that will do averaging of a vector or over any
particular dimension of a matrix. But maybe the average function was just
an example. I too am interested in how to define my own user functions for
calls from VEE. How is the path defined for the Matlab script engine? I
would think if you put them somewhere in that path, the Matlab engine would
be able to find them.
Just a thought,
Paul
Paul M. Brown
Senior Engineer
Ramgen Power Systems, Inc.
11808 Northup Way
Suite W-190
Bellevue, WA 98005
425-828-4919 x297
425-828-7756 fax
paul.brown@ramgen.com
-----Original Message-----
From: ext-michael.simon@nokia.com [mailto:ext-michael.simon@nokia.com]
Sent: Wednesday, December 14, 2005 7:00 AM
To: VRF
Subject: [vrf] Matlab
Hello,
I have a question concerning the Matlab script:
How can I use functions in Matlab? I want to define a function in a .m-file
(e.g. function y = average(x) .....in average.m) and I want to load this
function somehow into my Matlab script in Vee and use it like: a=
average(vect).
I couldn't find out how to load a .m-file into Matlab script. Also it was
not able to define the function in the script, because the codeword
"function" gives an error message.
Does anybody know more about this?
Michael
---
You are currently subscribed to vrf as: paul.brown@ramgen.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@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 "www.oswegosw.com/vrf_archive/".
---
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@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 "www.oswegosw.com/vrf_archive/".