|
|
Is there a way to automatically print a source file from Matlab?
Hi all,
Is there a way to do the following:
print('myfile.m');
will print out the "myfile.m" to the default printer with default
configurations...
How can I do that from within Matlab?
|
|
0
|
|
|
|
Reply
|
housing2006 (283)
|
5/10/2007 4:39:52 AM |
|
"Mike" <housing2006@gmail.com> wrote in message
news:f1u7lt$q9l$1@news.Stanford.EDU...
> Hi all,
>
> Is there a way to do the following:
>
> print('myfile.m');
>
> will print out the "myfile.m" to the default printer with default
> configurations...
>
> How can I do that from within Matlab?
>
help system
SYSTEM Execute system command and return result.
so you your system command to print. on doz, type system('print myfile.m')
on linux/unix do system('lpr myfile.m'), on VMS do system('print myfile.m')
etc....
or you can use !
hth
Nasser
|
|
0
|
|
|
|
Reply
|
Nasser
|
5/10/2007 7:01:04 AM
|
|
"Nasser Abbasi" <nma@12000.org> wrote in message
news:Oqz0i.261046$g24.132342@newsfe12.phx...
>
> "Mike" <housing2006@gmail.com> wrote in message
> news:f1u7lt$q9l$1@news.Stanford.EDU...
>> Hi all,
>>
>> Is there a way to do the following:
>>
>> print('myfile.m');
>>
>> will print out the "myfile.m" to the default printer with default
>> configurations...
>>
>> How can I do that from within Matlab?
>>
>
> help system
>
> SYSTEM Execute system command and return result.
>
> so you your system command to print. on doz, type system('print
> myfile.m')
> on linux/unix do system('lpr myfile.m'), on VMS do system('print
> myfile.m') etc....
>
> or you can use !
>
>
> hth
>
> Nasser
>
I am using Windows. The DOS solution is a little bit poor... any better
solutions? Thanks a lot!
|
|
0
|
|
|
|
Reply
|
housing2006 (283)
|
5/10/2007 7:46:38 AM
|
|
Mike,
> I am using Windows. The DOS solution is a little bit poor... any better
> solutions?
you may want to have a look at Printfil. Printfil runs in background on your
tray area and can automatically send your 'myfile.m' to the choosen Windows
printer as soon as it appears in a specified directory, without using the
'system()' command.
More info and a free trial version is available for download at
http://www.printfil.com
Regards,
Davide
|
|
0
|
|
|
|
Reply
|
guolo.NOSPAM.davide (35)
|
5/10/2007 11:01:59 AM
|
|
"Davide Guolo" <guolo.NOSPAM.davide@libero.it> wrote in message
news:HYC0i.3573$%k.30924@twister2.libero.it...
> Mike,
>
>> I am using Windows. The DOS solution is a little bit poor... any better
>> solutions?
>
> you may want to have a look at Printfil. Printfil runs in background on
> your tray area and can automatically send your 'myfile.m' to the choosen
> Windows printer as soon as it appears in a specified directory, without
> using the 'system()' command.
>
> More info and a free trial version is available for download at
> http://www.printfil.com
>
> Regards,
> Davide
This software is too complicated, and not free!
|
|
0
|
|
|
|
Reply
|
housing2006 (283)
|
5/10/2007 11:42:02 PM
|
|
Mike wrote:
>
>
>
> "Davide Guolo" <guolo.NOSPAM.davide@libero.it> wrote in
message
> news:HYC0i.3573$%k.30924@twister2.libero.it...
>> Mike,
>>
>>> I am using Windows. The DOS solution is a little bit
poor... any
> better
>>> solutions?
>>
>> you may want to have a look at Printfil. Printfil runs in
> background on
>> your tray area and can automatically send your 'myfile.m' to
the
> choosen
>> Windows printer as soon as it appears in a specified directory,
> without
>> using the 'system()' command.
>>
>> More info and a free trial version is available for download at
>> <http://www.printfil.com>
>>
>> Regards,
>> Davide
>
> This software is too complicated, and not free!
>
>
>
The support file here might be of use to you.
<http://www.mathworks.com/support/tech-notes/1200/1206.html>
Especially the section titled: Using the print command. There is a
note:
As of MATLAB R13, the additional option of providing the Windows
printer name is available via the -P option.
Hope this help.
Regards,
Georgios Kokovidis
|
|
0
|
|
|
|
Reply
|
gkokovid (69)
|
5/11/2007 12:42:43 AM
|
|
"Georgios Kokovidis" <gkokovid@yahoo.com> wrote in message
news:ef566d3.4@webcrossing.raydaftYaTP...
> Mike wrote:
>>
>>
>>
>> "Davide Guolo" <guolo.NOSPAM.davide@libero.it> wrote in
> message
>> news:HYC0i.3573$%k.30924@twister2.libero.it...
>>> Mike,
>>>
>>>> I am using Windows. The DOS solution is a little bit
> poor... any
>> better
>>>> solutions?
>>>
>>> you may want to have a look at Printfil. Printfil runs in
>> background on
>>> your tray area and can automatically send your 'myfile.m' to
> the
>> choosen
>>> Windows printer as soon as it appears in a specified directory,
>> without
>>> using the 'system()' command.
>>>
>>> More info and a free trial version is available for download at
>>> <http://www.printfil.com>
>>>
>>> Regards,
>>> Davide
>>
>> This software is too complicated, and not free!
>>
>>
>>
> The support file here might be of use to you.
>
> <http://www.mathworks.com/support/tech-notes/1200/1206.html>
>
> Especially the section titled: Using the print command. There is a
> note:
>
> As of MATLAB R13, the additional option of providing the Windows
> printer name is available via the -P option.
>
> Hope this help.
>
> Regards,
> Georgios Kokovidis
Thanks but we are not talking about printing of figures, we are talking
about printing of source codes, or any text files under a certain
directory...
|
|
0
|
|
|
|
Reply
|
housing2006 (283)
|
5/11/2007 4:30:13 AM
|
|
|
6 Replies
48 Views
(page loaded in 0.405 seconds)
|
|
|
|
|
|
|
|
|