www.centos.org Forum Index CentOS Social generating command line output from inside matlab
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: generating command line output from inside matlab | #2 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Please do not dual-post. Your duplicate post has been deleted. As you do not have a CentOS-5, or even a CentOS-specific question, your topic is being moved to Social.
You might want to try the Matlab Community support, perhaps using their search tool to look for linux pipe or similar. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2011/12/14 20:35
|
|||
|
Re: generating command line output from inside matlab | #3 |
|
|---|---|---|---|
|
Regular Board Member
![]()
Joined: 2011/12/12
From
Posts: 77
|
So if I understand correctly, you want to start another script in the unix environment, from MATLAB?
if 'unix('some-command')' does the trick for executing unix commands, you might want to research adding information (or references to information) as parameters? I'm not a MATLAB user, but in pseudo-code I'd propose the following: command = "command-to-execute.sh " dataset = (location-to)resultset-from-MATLAB for element e in dataset { command.concatenate e.value } unix ('command') This might not be very 'nice' because potentially you'd end up with a LOT of parameters, potentially breaking something in the execution. Another way might be to have the script / program that processes the MATLAB result running as a seperate process and have the above script call a program that sends values to this script value for value. This takes some (re-)programming of the entire set of programs though.. |
||
Posted on: 2011/12/19 9:16
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
mattmer





You cannot start a new topic.
You can view topic.