Suppress Academic license notification

3 次查看(过去 30 天)
I know this is trivial in the grand scheme of things, but I'd love to remove the notification everytime I start matlab R15a that I have an academic license. This seems to be a new innovation since 14b, and not an improvement. Is it possible to suppress the notification? Most people probably don't need reminding after at most 100 repititions... Thanks!

采纳的回答

Guillaume
Guillaume 2015-3-23
@Andreas, as of 2015a, Matlab prints Academic License at the top of the command window before the first prompt. That's the only reminder you get for the rest of the session, so not a big deal.
@Leo, just put clc at the end of your startup.m. I'm sure it was a very conscious decision by Mathwork, so I doubt they're going to remove it.

更多回答(5 个)

Leo Simon
Leo Simon 2016-9-9
编辑:Leo Simon 2016-9-9

As root, edit the file

$MATLABPATH/resources/MATLAB/en/branding.xml

(Better back it up first! I forgot to)

Change the line

 <entry key="ACADEMIC_CMD_WINDOW_STR" translate="false">\n\tAcademic License\n\n</entry>

to

 <entry key="ACADEMIC_CMD_WINDOW_STR" translate="false"></entry>

Don't delete the line or else matlab will crash

You can also get rid of the irritating first two lines about getting started and product information by editing

$MATLABPATH/resources/MATLAB/en/matlabrc.xml

and changing the lines

    <entry key="ProductInformationMessage">  For product information, visit www.mathworks.com.</entry>
    <entry key="ToGetStartedMessage">  To get started, type one of these: helpwin, helpdesk, or demo.</entry>

to

    <entry key="ProductInformationMessage"></entry>
    <entry key="ToGetStartedMessage"></entry>

Again, don't just delete the lines


Andreas Goser
Andreas Goser 2015-3-23
I only know about the "EDU>>" prompt, but this is the Student Version, not the academic license. Can you share what exactly you get?

Leo Simon
Leo Simon 2015-3-23
After I run my startup script, it announces
Academic License
and then the >> prompt.

Leo Simon
Leo Simon 2015-3-23
clc clears the screen before printing the reminder, but indeed, not a big deal, thanks!
  1 个评论
Guillaume
Guillaume 2015-3-23
Oh, yes indeed. I must have clicked on the R2014b shortcut when I tested.
I don't think there's a way to suppress it then. Probably, on purpose.

请先登录,再进行评论。


Kyrian Staman
Kyrian Staman 2016-9-9
I know I once removed this message by changing some xml (I think) file that is called at matlab startup. I had found this information online, but for the love of me I can't seem to find it again and currently know no easy way of checking what file I changed. If anyone finds this topic online again or knows a way for me to find what file I changed, I'm all ears.
  1 个评论
Andreas Goser
Andreas Goser 2016-9-9
Beside this sounds not like something MathWorks is supportive in you doing - why would you be interested in doing it?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by