File Exchange Answers Newsgroup Link Exchange Blogs Trendy Cody Contest MathWorks.com
2 Comments
Show all comments
Zachary on 18 Nov 2013
Link
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/102946#comment_180761
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Mathworks should really include this information in a pop-up window whenever a user tries to install the Mac version of R2013b. I spent a
while trying to figure it out, and this thread/question did not come up in my Google searches on the topic. (Maybe I need to use better
search terms, but I think my point is still valid.)
http://www.mathworks.com/matlabcentral/answers/102946#comment_189196
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Is there an official recommended workaround by now, since several months have passed and continuously working with a blurry MatLab is
creating headaches!
4 votes
Flag
A flag is a request to an editor to review and potentially close or delete content on MATLAB Answers. Include the reason for your flag
below.
Spam
More
This question is spam.
Unclear
More
Unclear flags a question requiring more information. These questions are illogical, lack detail, or may not be a question.
Unclear questions can be reopened within 10 days of closure. Thereafter, unclear questions become permanently deleted.
Provide additional information about your flag belowYour message will be publicly visible.
Submit Cancel
Tags
No tags are associated with this question.
Products
MATLAB
8 Answers
Answer by MathWorks Support Team on 18 Oct 2013
Accepted answer
The reason for this behavior is that MATLAB R2013b (or R2014a) includes a version of the Java Runtime Environment (JRE) that does not
currently take advantage of the full display capabilities on MacBook Pros with Retina displays. As a result, MATLAB R2013b will look less
sharp than many other Mac applications, including earlier releases of MATLAB. A workaround is to install and use a newer JRE, and restrict
your desktop to certain fonts and sizes.
Here are some options for improving the visual appearance of MATLAB:
This option is the simplest to execute, but it only provides a slight improvement. After completion of these steps, the MATLAB Desktop will
appear pixelated, but not blurry. To use this option:
2. Select the MATLAB icon and choose "File" > "Get Info".
4. Launch MATLAB.
This option is also simple to execute, but it changes your Mac's display settings to shrink all content and give the appearance of more
space. Because the application is smaller, the blurriness (or pixelation, if combined with the "Open in Low Resolution" option) is less
noticeable. To use this option:
1. Choose "System Preferences" from the Apple menu in the top-left corner of your screen.
3. In the "Display" tab, ensure that the "Resolution" type is set to "Scaled".
4. Select the option for "More Space". This will decrease the size of the content on your screen and offer more space.
5. Launch MATLAB.
This option requires more advanced steps, but it will enable MATLAB to use the full Retina Display capabilities. This procedure involves
downloading a different JRE and pointing MATLAB to use that JRE instead of the one that is shipped with MATLAB. It also applies only to
MATLAB that is launched from Terminal. To use this option:
1. Install Java Runtime 7u45 or newer (but not the forthcoming Java 8) from Oracle’s web site: (Some users experience the cursor
insertion pointer issue with u45 as well. But this was not observed in later releases like u60)
http://www.java.com/en/download/index.jsp
2. Launch the "Terminal" application and set your MATLAB_JAVA environment variable to this JRE as described at:
http://www.mathworks.com/matlabcentral/answers/103056
3. From that same "Terminal" window, execute the following command to launch MATLAB:
/Applications/MATLAB_R2013b.app/bin/matlab
The MATLAB Desktop should now appear crisp.
4. With MATLAB as the active application, choose "MATLAB" > "Preferences" from the menu bar. In the preferences window, navigate to
"MATLAB" > "Fonts".
5. For the "Desktop code font" preference, start with one of the following combinations that have been shown to work:
This should give you a crisp display with a correctly drawn cursor in the Editor and Command Window. You will know you have a working
combination when the cursor placement is correct when typing a long line in the Command Window. There may be other fonts and font
sizes that work; you can continue to experiment until you find a setting that works well for you. Note that other windows that accept text
input may continue to draw the cursor at an incorrect location. This will be most noticeable when a line of text grows in length, beyond 40
characters or so.
R2013a and previous releases of MATLAB for Mac used Java that comes bundled with OS X; however, starting with MATLAB R2013b,
MathWorks migrated to Oracle's Java 7 instead of the one bundled with OS X. This is to ensure the continued availability of MATLAB on
Mac computers because Apple is in the process of deprecating its Java support.
R2013b is bundled with Java 7u11. This version lacks Retina display support as described in the following webpage.
http://bugs.sun.com/view_bug.do?bug_id=8009754
A subsequent update with support for Retina displays, Java 7u40, was released in September 2013. Unfortunately, this update contains
incomplete support for Retina displays—while visually attractive, the cursor insertion pointer is drawn at an incorrect location with many font
sizes.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8020752
It is hard to know exactly where the cursor is, making editing text significantly more difficult. We now understand that choosing specific
fonts and font sizes can mitigate the issue. All text editing fields can be impacted to some degree, but it is most noticeable and bothersome
in the Editor and Command Window.
8 Comments
Show 5 older comments
Markus on 15 Nov 2013
Link
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/102946#comment_180247
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
See my answer here: http://www.mathworks.com/matlabcentral/answers/86910 I do not seem to have that cursor issue, with Java7u45. Or
if I have it, just to an extend that it is barely noticeable. Just thought it would be good to know for other people who end up here.
http://www.mathworks.com/matlabcentral/answers/102946#comment_180760
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Using Java7u45, the text spacing in the editor is really goofed up (seems to be worse the longer the line is) and the cursor is not displayed
where MATLAB seems to think it is.
http://www.mathworks.com/matlabcentral/answers/102946#comment_185610
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
I think this is related to http://bugs.sun.com/view_bug.do?bug_id=8020752, which doesn't seem to be getting any attention. The latest dev
release of the JDK (jdk1.7.0_60) does not address the cursor issue either.
http://www.mathworks.com/matlabcentral/answers/102946#comment_185628
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
It looks like JDK 8 (still in development) resolves this cursor issue.
http://www.mathworks.com/matlabcentral/answers/102946#comment_203407
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
This hack fixed it for me. I'm using Oracle's JDK 1.7.0_51, and that cleared up the Retina display problems.
But it causes instability for me; apparently R2014a isn't fully compatible with JDK 1.7.0_51. After I switched over, Matlab tends to hang
once every couple hours under heavy usage. And in particular, the help browser is completely broken. Using the "help" command on
anything will hang the Matlab session. But for me it's worth it to fix the Retina display; it is fugly out of the box.
Is 1.7.0_45 in particular known to be stable with Matlab, or is that just one that's known to fix the Retina blurriness? I'm running Matlab
R2014a on OS X 10.9.2 on a mid 2012 Retina MacBook Pro.
@Erik Johnson - I'm not seeing the text spacing and cursor issue. I'm using Meslo LG as my editor font, and all the text editing areas work
great. Maybe give that or some other font a try?
http://www.mathworks.com/matlabcentral/answers/102946#comment_203736
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
This works for me, but it seems that on a Mac it only works for MATLAB called from the shell prompt, and not from the icon on the dock. Is
that correct?
http://www.mathworks.com/matlabcentral/answers/102946#comment_205880
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
@cyclist, creating a "global" environment variable (one that is in effect from the Dock and persists across reboots) is unfortunately
somewhat tricky to do. There is a lengthy discussion of options in the comments of
http://www.mathworks.com/matlabcentral/answers/103056
http://www.mathworks.com/matlabcentral/answers/102946#comment_244954
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
1 vote
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Link
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/102946#answer_112291
Answer by florian on 3 Apr 2014
Edited by florian on 4 Apr 2014
Mac only
Inspired by this post here I created the following AppleScript to run Matlab2014a
PS:
MatlabR2014a_retina.app.zip
4 Comments
Show 1 older comment
Bob on 16 Apr 2014
Link
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/102946#comment_208300
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
This seems to work well with R2013b, thanks. FYI a cut/paste from your website didn’t work, but cut/paste from above did compile.
http://www.mathworks.com/matlabcentral/answers/102946#comment_208384
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
This seems to work with 2014a. The MATLAB documentation also works for me on this. Thanks for posting.
http://www.mathworks.com/matlabcentral/answers/102946#comment_209338
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Thanks, florian, for a neat solution! But running MATLAB with the above solution makes the startup folder "/", not "~/Documents/MATLAB".
This can be annoying to some people like me who stores most relevant files on MATLAB folder. Adding "export
MATLAB_USE_USERWORK=1" to the above script will solve this problem. So the above script should be
. And for those who want to use the MATLAB icon above, right-click the MATLAB icon and see package inside and find
"Contents/Resources/Scripts/main.scpt". Double-click this script file and modify it accordingly. Then compile and save. DONE. Now you will
see your original startup folder when you launch.
http://www.mathworks.com/matlabcentral/answers/102946#comment_213291
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
An alternative to export MATLAB_USE_USERWORK=1 is to simply change directory to your regular Matlab userpath before invoking
matlab. This may be a small advantage if you invoke matlab from the terminal on occasion and want it to start in the shell's working
directory when you do that.
5 votes
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Link
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/102946#answer_131990
5 Comments
Show 2 older comments
the cyclist on 26 Mar 2014
Link
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/102946#comment_204322
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
This solution worked for me, and is vastly simpler than the accepted solution.
http://www.mathworks.com/matlabcentral/answers/102946#comment_205840
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
I run the first solution - it did not break anything, but it did not really help (it did look different after that, but still not quite right). The
Application/Info/Open in Low Res (after that) route from David Malling worked just fine.
http://www.mathworks.com/matlabcentral/answers/102946#comment_205883
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
@David, thanks for the suggestion! I'm up-voting this because it is a simply thing to try and may be satisfactory for some users. However,
you will not really be running MATLAB with full resolution -- I believe this is turning off anti-aliasing. If you want true Retina-quality text, I
believe the using an alternate JRE is still your best bet.
florian on 3 Apr 2014
Link
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/102946#comment_205913
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
http://www.mathworks.com/matlabcentral/answers/102946#comment_225092
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
This suggestion works great for r2014a. Super easy, and I don't want to upgrade my java version for compatibility reasons. Thanks so
much!
3 votes
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Link
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/102946#answer_129948
You may get crisp screen; but calling help browser (either from the menu or typing 'doc') will result in MATLAB hang. So you have to quit
the MATLAB via 'command+option+ESC.'
Since I often use the help browser, I contacted MathWorks support team. And after lots of e-mails going back and forth, I finally settled with
the following solution.
(Note that this applies to R2014a users. I am using MacBook Pro Retina 15-inch Late 2013)
1. Refer to this link and apply the patch as explained. (During the unzip, you should overwrite existing files when prompted.)
http://www.mathworks.com/support/bugreports/870843
2. After the patch, try typing 'doc' on 'crisp' MATLAB. If MATLAB does not hang, you are lucky.
cd ~
rm -r .matlab
(These commands delete MATLAB configuration directory hidden in your home directory.)
4. If you launch MATLAB again, new '.matlab' will be generated automatically. Now type 'doc' on MATLAB command line and you will see
the Help Browser without causing MATLAB hang.
This is it. But there's still an issue: do not maximize the help browser by pressing green + button on the top-left. You can manually adjust
the size of the help browser but maximizing the window will again cause MATLAB hang. In this case you can go back to the Step 3 and the
problem will be fixed.
I just reported this new issue to MathWorks support team and if I get a final solution, I'll probably post that here. But in the meantime, we
can at least use the help browser.
4 Comments
Show 1 older comment
Zhuhao on 10 Jun 2014
Link
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/102946#comment_219112
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Hi, where can I download the patch? The only attachment I can download in that page is a zip file contains a bugreport folder, which has
only two file, license.txt and another empty txt file. Is this some mistake or I missed something?
http://www.mathworks.com/matlabcentral/answers/102946#comment_223574
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Maybe your download was not successful. How about trying it again? I just downloaded and checked that the zip file contains four different
folders: one is the bug report folder you mentioned; another folders are "java", "sys", and "toolbox".
http://www.mathworks.com/matlabcentral/answers/102946#comment_226585
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
I followed your instructions. After resetting the config folder, at first Matlab seemed to be still hanging with a doc call... But no: the second
trial worked just fine!
http://www.mathworks.com/matlabcentral/answers/102946#comment_233853
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
edit: I was using Java 8, not 7, as was clearly stated being a requirement in the top accepted post. Now working, with Java 7u67. Now
Eclipse is complaining about Java's version, but at least Matlab is mex'ing for me, and text looks awesome.
Old: I have attempted this fix three times now, and can't figure out why it still doesn't work for me. I really like 2014a in retina rendered
mode, but doc calls freeze matlab hard, despite patching and deleting the .matlab folder. What I have done:
1 vote
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Link
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/102946#answer_137157
1 Comment
Show all comments
the cyclist on 5 Oct 2014 at 3:06
Link
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/102946#comment_240902
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Most excellent.
1 vote
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Link
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/102946#answer_153945
@Matthew glad it works, I am happy I can finally give something back to the community
@Dongeun Lee thank you for adding this, I added it to the code on my website
Best, florian
0 Comments
Show all comments
0 votes
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Link
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/102946#answer_136387
0 Comments
Show all comments
0 votes
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Link
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/102946#answer_145803
0 Comments
Show all comments
0 votes
Flag
Include the reason for your flag below: Your message will be publicly visible.
Submit Cancel
Link
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/102946#answer_148843
Contact us
© 1994-2014 The MathWorks, Inc. Site Help Patents Trademarks Privacy Policy Preventing Piracy Terms of Use
Featured MathWorks.com Topics: New Products Support Documentation Training Webinars Newsletters MATLAB Trials Careers