[Expyezp] Pure Data - Matlab en Linux?

JOSE IGNACIO QUEVEDO xmajbsf76 at gmail.com
Wed Nov 24 10:45:06 PST 2010


hola todos:
tengo un juego de osciladores funcionando en PD, con sus correspondientes
numeros que le cambian la frecuencia de oscilacion:

como puedo conectar en Ubuntu 10, matlab a estos desarrollos numericos?



[PD] execute matlab using [shell] object *IOhannes m zmoelnig* zmoelnig at
iem.at
<pd-list%40iem.at?Subject=Re%3A%20%5BPD%5D%20execute%20matlab%20using%20%5Bshell%5D%20object&In-Reply-To=%3C45117252.4000704%40iem.at%3E>
*Wed Sep 20 18:54:42 CEST 2006*

   - Previous message: [PD] execute matlab using [shell] object
   <http://lists.puredata.info/pipermail/pd-list/2006-09/042393.html>
   - Next message: [PD] execute matlab using [shell] object
   <http://lists.puredata.info/pipermail/pd-list/2006-09/042400.html>
   - *Messages sorted by:* [ date
]<http://lists.puredata.info/pipermail/pd-list/2006-09/date.html#42395>
[
   thread ]<http://lists.puredata.info/pipermail/pd-list/2006-09/thread.html#42395>
[
   subject ]<http://lists.puredata.info/pipermail/pd-list/2006-09/subject.html#42395>
[
   author ]<http://lists.puredata.info/pipermail/pd-list/2006-09/author.html#42395>

------------------------------

hi.

Gerda Strobl wrote:
>* Dear all,
*>*
*>* I'd like to execute a matlab file using the shell object.
*>* The standard command I use ist
*>* /usr/local/matlab7/bin/./matlab -nodisplay -nosplah.
*>*
*>* Sending such a message to the shell object - I only get the info that
*>* the program starts on the pd-shell:
*>* STDOUT: < M A T L A B >
*>* STDOUT: Copyright 1984-2004 The MathWorks
*>* STDOUT: Inc.
*>* STDOUT: Version 7.0.0.19901 (R14)
*>* STDOUT: May 6
*>* STDOUT: 2004
*>* STDOUT: Warning: Duplicate directory name: /home/gerda/matlab.
*>* STDOUT: To get started
*>* STDOUT: type one of these: helpwin
*>* STDOUT: helpdesk
*>* STDOUT: or demo.
*>* STDOUT: For product information
*>* STDOUT: visit www.mathworks.com.
*>* STDOUT: >>
*>* DONE: 0
*>*
*>* but there is no chance, to send it more options (change dir, set a
*>* paramater). So nothing.
*>*
*>* Has someone done this already? (I know there is pdoctave, but octave is
*>* too slow).
*>* Or do iI treat the shell object in a wrong way? Or is it simply not
*
usually you use [shell] with a script that does everything by itself and
which does not take any arguments.

e.g.
<snip>
#!/bin/sh
## run matlab from here and tell it immediately to execute a .m file
which reads in the matrix and does whatever it does and write it out to
another file
...
## do something with the outfile, so [iemmatrix] can handle it
...

</snip>

then you just run this script via [shell].

the good thing about this is, that you can debug the script separately
from the integration into the patch.

>* possible? (I'd like to recalculate a matrix in matlab and then write a
*>* *.mtx file  back to my pddirectory, in order to use it  wth the iematrix
*>* objects).
*>* Or do I give matlab the wrong commands?
*
i don't know which commands you are giving to matlab.

note however, that you cannot talk to the program started with [shell]
once it is running (e.g. via stdin); i guess you are trying to do
something like that.


mga.dsf
IOhannes


------------------------------

   - Previous message: [PD] execute matlab using [shell] object
   <http://lists.puredata.info/pipermail/pd-list/2006-09/042393.html>
   - Next message: [PD] execute matlab using [shell] object
   <http://lists.puredata.info/pipermail/pd-list/2006-09/042400.html>
   - *Messages sorted by:* [ date
]<http://lists.puredata.info/pipermail/pd-list/2006-09/date.html#42395>
[
   thread ]<http://lists.puredata.info/pipermail/pd-list/2006-09/thread.html#42395>
[
   subject ]<http://lists.puredata.info/pipermail/pd-list/2006-09/subject.html#42395>
[
   author ]<http://lists.puredata.info/pipermail/pd-list/2006-09/author.html#42395>

------------------------------
More information about the Pd-list mailing
list<http://lists.puredata.info/listinfo/pd-list>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randomlab.net/pipermail/expyezp-randomlab.net/attachments/20101124/5f740b8d/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled-1.pd
Type: application/octet-stream
Size: 261 bytes
Desc: not available
URL: <http://lists.randomlab.net/pipermail/expyezp-randomlab.net/attachments/20101124/5f740b8d/attachment-0002.obj>


More information about the Expyezp mailing list