Executing ".m" files in workstation , remotely

Hello,
I have a workstation in my network. This workstation, is used by many people, so I can not log into it using VNC or remote desktop programs. I want to execute matlab scripts in this workstation, from my laptop. The matlab scripts are already stored in the workstation hard drive. I tried "psexec", it works, but only for scripts that don't display any figures (I suppose "psexec" starts Matlab without JVM). I need to be able to display and save figures for some works.
I also tried the Matlab for mobile. I can execute the scripts from my phone, but i receive the plots in my phone, and if I disconnect my phone from matlab, the script stops running....
Does anyone know how can I remotely execute matlab scripts in another computer, that is able to show figures, without the need of remote desktop application?
Thank you,
-- Ekhi

4 件のコメント

Walter Roberson
Walter Roberson 2015 年 9 月 28 日
Can you use ssh -X ?
Ekhi Zugasti
Ekhi Zugasti 2015 年 9 月 28 日
thank you for the answer, but my workstation uses Windows. I think i am not able to use ssh -X.
i just tried to install a SSH server, and tried to plot, and save the plot, via SSH, and it came to nothing. maybe I am doing it wrong.
Walter Roberson
Walter Roberson 2015 年 9 月 28 日
Is the workstation configured for Terminal Services? That would allow multiple people to use it simultaneously including for graphics.
Ekhi Zugasti
Ekhi Zugasti 2015 年 9 月 29 日
Thank you for your answer Walter, bur, no, it is a windows 7 pc. Wich doesn't allow multiple user logon.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 9 月 29 日

0 投票

You have disallowed all of the options that would allow for displaying graphics, so you will not be able to do that (except by making remote calls to MATLAB in automation server mode).
You will be able to generate plots and save them, in some cases. You will need to start up MATLAB with no desktop. I do not recall all of the combinations that allow plots to be saved when you have no graphics, but I believe that print() with postscript is one of the methods and I think saveas() might be usable as well.

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

質問済み:

2015 年 9 月 28 日

回答済み:

2015 年 9 月 29 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by