building Matlab actor
I'm in the process of building a Matlab Expression actor
This actor will give the user the abbility to run a matlab expression (i.e. a .m file) taking input from input ports and output certain results from user specified output ports.
if a user names an input port called "aaa" then a variable will be created for use called "aaa" with the value that is received from an input token.
similarly if a user makes a port called "aaa" and there is something in the matlab expression along the lines of "aaa = 2 + 2" then the value "4" will be output on the aaa port.
It works by using the java class java.lang.Runtime to start an instance of matlab using the command line "matlab -nodisplay -nosplay" (which starts matlab without a gui). it then sets the input port variables, runs the specified expression, extracts the values for the output ports, then quits matlab.
This method is taken directly from the RExpression actor which does the same thing but using R.
The only hard part is parsing the output string from matlab to extract the values we need. currently i can read in Double's Integers and Strings. Arrays of those 3 types will be the next challenge (and should be the final one).
This actor will give the user the abbility to run a matlab expression (i.e. a .m file) taking input from input ports and output certain results from user specified output ports.
if a user names an input port called "aaa" then a variable will be created for use called "aaa" with the value that is received from an input token.
similarly if a user makes a port called "aaa" and there is something in the matlab expression along the lines of "aaa = 2 + 2" then the value "4" will be output on the aaa port.
It works by using the java class java.lang.Runtime to start an instance of matlab using the command line "matlab -nodisplay -nosplay" (which starts matlab without a gui). it then sets the input port variables, runs the specified expression, extracts the values for the output ports, then quits matlab.
This method is taken directly from the RExpression actor which does the same thing but using R.
The only hard part is parsing the output string from matlab to extract the values we need. currently i can read in Double's Integers and Strings. Arrays of those 3 types will be the next challenge (and should be the final one).
Posted by
TristanKing
on
2006-03-16 16:33
Trackback
The URI to TrackBack this entry is: #-
casinos:
casinos
<a href="http://online-casino.webpark.pl/">online casinos</a> <a href="http://www.gambling-day.com/">online casino</a>
-
Broker Cheap Ticket Trick Really Cheap Airline Ticket:
Broker Cheap Ticket Trick Really Cheap Airline Ticket
<a href="http://xoomer.alice.it/smot/broker-cheap-ticket-trick.html">Broker Cheap Ticket Trick</a> <a href="http://xoomer.alice.it/smot/really-cheap-airline-ticket.html">Really Cheap Airline Ticket</a>
-
order vicodin:
order vicodin
<a href="http://rxme.sitesfree.com/order-vicodin.html">order vicodin</a>
-
cheap car insurance:
cheapest car insurance
all information about cheap car insurance
-
Cheap car insurance:
cheap car insurance
All information about cheap car insurance
-
this is very good:
this is very good
this is related article
-
this is very good:
this is very good
this is related article
-
http://accel.giveology.net/es-accel-shoes.html:
es accel shoes
gimmemoney 171831 Top news about es accel shoes.
-
http://maleescorts.giveology.org/male-escort-in-miami.html:
male escort in miami
gimmemoney 171831 This site contains relevant information about male escort in miami.
-
http://chloride.googlology.com/use-of-sodium-chloride.html:
use of sodium chloride
gimmemoney 171831 Relevant search results and links for use of sodium chloride
-
aid pharm rite:
aid pharm rite
gimmemoney 171831 Aggregator of aid pharm rite sites
-
santa fe nm weather:
santa fe nm weather
gimmemoney 171831 Features of santa fe nm weather.
-
sexy woman pic:
sexy woman pic
gimmemoney 171831 sexy woman pic intro
-
st pete times jobs:
st pete times jobs
gimmemoney 171831 st pete times jobs foundation
-
burger king christmas song:
burger king christmas song
gimmemoney 171831 Info about burger king christmas song.
-
barnie:
barnie
gimmemoney 171831 News about barnie.
-
negative calorie fruit:
negative calorie fruit
gimmemoney 171831 Description of negative calorie fruit.
-
cairo georgia newspaper:
cairo georgia newspaper
gimmemoney 171831 Value information about cairo georgia newspaper
-
free hardcore movie site:
free hardcore movie site
gimmemoney 171831 This site contains relevant information about free hardcore movie site.
-
1155 drug mylan:
1155 drug mylan
SomegifttoME 171831 1155 drug mylan foundation
-
grass japanese lawn:
grass japanese lawn
SomegifttoME 171831 grass japanese lawn info and more
-
feinstein imax theater:
feinstein imax theater
SomegifttoME 171831 Master information for feinstein imax theater.
-
avoid scams:
avoid scams
SomegifttoME 171831 Technologies of avoid scams
-
2b air cheap fare:
2b air cheap fare
SomegifttoME 171831 Relevant 2b air cheap fare
-
jc penney home:
jc penney home
SomegifttoME 171831 jc penney home moves
-
michael jackson surgery photo:
michael jackson surgery photo
SomegifttoME 171831 This site contains relevant information about michael jackson surgery photo.
-
teen model video:
teen model video
SomegifttoME 171831 Variants of teen model video.
-
bring wonder:
bring wonder
SomegifttoME 171831 bring wonder co
-
change screen name:
change screen name
SomegifttoME 171831 The best of change screen name.
-
us 50 state abbreviation:
us 50 state abbreviation
SomegifttoME 171831 Features of us 50 state abbreviation.
-
neurontin hair loss:
neurontin hair loss
SomegifttoME 171831 Information source about neurontin hair loss.
-
funny man old:
funny man old
SomegifttoME 171831 Search results for 'funny man old'.
-
greece guide map tour:
greece guide map tour
greece guide map tour source
-
angeles entertainment job los:
angeles entertainment job los
Good information about angeles entertainment job los.
-
dirty toon porn:
dirty toon porn
Info about dirty toon porn.
-
cincinnati cirque du soleil:
cincinnati cirque du soleil
Relevant search results and links for cincinnati cirque du soleil
-
pontiac allentown pennsylvania:
pontiac allentown pennsylvania
pontiac allentown pennsylvania author
-
camp movie:
camp movie
Value information about camp movie
-
hangman strip:
hangman strip
Reviews on hangman strip.
-
portage daily register:
portage daily register
portage daily register company
-
deep throat dick sucking:
deep throat dick sucking
deep throat dick sucking foundation
-
free asian pussy gallery:
free asian pussy gallery
Good information source for free asian pussy gallery.
-
deep vagina:
deep vagina
Value information about deep vagina
-
tied guys:
tied guys
tied guys friends
-
bacardi grand melon:
bacardi grand melon
Description of bacardi grand melon.
-
Gogle plonejcueduau:
Gogle
plonejcueduau start page
-
Gogle plonejcueduau:
Gogle
plonejcueduau co
-
Gogle plonejcueduau:
Gogle
plonejcueduau intro article
-
Life plonejcueduau:
Life
homepage of plonejcueduau
-
Life plonejcueduau:
Life
Good information about plonejcueduau.
-
Life plonejcueduau:
Life
Eye of plonejcueduau
-
Life plonejcueduau:
Life
Very actual information about plonejcueduau.