声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

声振论坛 展示 基础理论 查看内容

使用php在网页执行matlab

2012-10-18 06:57| 发布者: aspen| 查看: 14301| 评论: 0|原作者: Jillian|来自: 振动论坛

摘要: 目录 IncludingStartup Options in a Shortcut on Windows Systems SpecifyingStartup Options in the MATLAB Startup File CommonlyUsed Startup Options PassingPerl Variables on Startup Startupand Callin ...
出现的问题:                                                                                                                                                                                                                                                                                  
/usr/local/MATLAB/R2012a/bin/matlab-nojvm -nosplash -r "ls;exit;"Warning: No displayspecified. You will not be able to display graphics on the screen. Copyright 1984-2012 The MathWorks, Inc. R2012a(7.14.0.739) 32-bit (glnx86) February 9, 2012 To get started, typeone of these: helpwin, helpdesk, or demo. For product information,visit www.mathworks.com. >>
http://www.mathworks.com/matlabcentral/newsreader/view_thread/165074
ThreadSubject: error message " no display specified"

Subject: errormessage " no display specified"
From: PeterJohansson
Date: 4Mar, 2008 15:57:01
Message: 1of 2
Replyto this message
Addauthor to My Watch List
Vieworiginal format
Flagas spam


DearFriends,
When I try to open the matlab installed on remoteserver to
work on the files located at the same server,byusing Xterm
on windows XP OS, I get the message "NoDisplay specified.
You will not be able to displaygraphics on the screen."

Please suggest me somesolution.
Thanks

Subject: errormessage " no display specified"
From: roberson@ibd.nrc-cnrc.gc.ca(Walter Roberson)
Date: 4Mar, 2008 20:07:35
Message: 2of 2
Replyto this message
Addauthor to My Watch List
Vieworiginal format
Flagas spam


Inarticle 1@fred.mathworks.com>,
PeterJohansson <johansson2006@hotmail.com> wrote:
>DearFriends,
>When I try to open the matlab installed on remoteserver to
>work on the files located at the sameserver,by using Xterm
>on windows XP OS, I get themessage "No Display specified.
>You will not beable to display graphics on the screen."

On the remotehost, define a global environment variable
named DISPLAY whichis your PC's hostname (or IP address)
followed by ':0'.

Themeans to define this variable will depend upon the shell
youare using, and upon the operating system. For example
forthe original Bourne shell('sh'),

DISPLAY=johansson.hotworks.com:0 exportDISPLAY

For the Korn shell or modern Bourne shell, theabove would work as
would

exportDISPLAY=johansson.hotworks.com:0

For csh and derivatives,you would likely need something similar to

setenv DISPLAYjohansson.hotworks.com:0


On some Unix systems assigningDISPLAY can be done automatically
in /etc/profile by a linesuch as

[ ! -z "${REMOTEHOST:-}" ] &&DISPLAY=$REMOTEHOST:0 export DISPLAY


Once you haveDISPLAY defined on the remote system, you might
need to"authorize" the remote system to display onto yourlocal
system. The mechanisms for that vary according to whichX11 you
are running (e.g., Hummingbird eXceed or cygwin) butthe
typical unix-like mechanism would be to use the 'xauth'command.
xauth has two major modes of operation. The easier ofthe two
is not permitted in some security environments. Itwould look like

xauth +SERVERNAME

such as

xauth+matserv.hotworks.com


Sometimes you have to use IPaddresses for DISPLAY and for xauth .
--
  "Productof a myriad various minds and contending tongues, compactof
  obscure and minute association, a language hasits own abundant and
  often recondite laws, in thehabitual and summary recognition of
  whichscholarship consists." -- Walter Pater

本文内容由 Jillian 提供

最新评论

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-2 04:19 , Processed in 0.162209 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部