How to fix remote Matlab display resolution when using ssh -X?

I have a Desktop computer (Ubuntu 18.10) which I use for my heavy computations. When not at the office, I use my Macbook (Late 2012, retina display). I would like to run Matlab remotely from Desktop Ubuntu, onto my MacOSX using ssh -X. When I do so, Matlab opens using OpenGL rendering. I would like to know if there is a way to impose a rendering that fits my screen resolution (in my case Retina display resolution (2560-by-1600)?
BONUS question: if possible doing so without permanently changing the resolution in which Matlab is displayed on my Ubuntu computer (and for which I use the hardware rendering of my NVidia GPU and not OpenGL).

답변 (1개)

Naman Chaturvedi
Naman Chaturvedi 2018년 11월 5일

0 개 추천

You can try using Painters as a renderer only instead of OpenGL. Use -noopengl flag while opening MATLAB from the command line to do so.

댓글 수: 3

Hi Naman, thank you for your answer. What is Painters? Actually, when I use the -noopengl flag when launching Matlab, I see no difference compare to when I use opengl s it seems that calling Matlab with the -noopengl flag does not solve the problem...
Otherwise, is there any way to use Matlab on my macOS but using the resolution kernel of my remote desktop computer?
I see that there is a way to use Matlab on my iPhone, using remotely my desktop computer. I a sure there is way to set this on my laptop (Macbook)...?
I just reallized I left this on the side because it did not work at the time, and it still does not, unfortunately.
Just ran:
ssh myname@IPdistantPC
and then once logged in:
matlab -noopengl &
But the rendering is still the one I have without the -noopengl flag.
Any insights?
(My laptop is a MacbookPro 13 running Catalina (sigh!) and my distant Desktop (the one I want to use Matlab from) is a Ubuntu 19.10 with a nvidia gpu and Matlab 2019b.)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2018년 10월 27일

댓글:

2020년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by