imshow(Im) hangs when I run it on MATLAB 2016b on Ubuntu 16.04 - Has anyone solved this issue?

2 ビュー (過去 30 日間)
rustein
rustein 2017 年 1 月 26 日
コメント済み: Gaurav Tolani 2018 年 3 月 28 日
No matter what size of image, MATLAB just hangs after I use the imshow(im) function. I don't get any error messages; the program just stops...
Thanks in advance

回答 (1 件)

Vandana Rajan
Vandana Rajan 2017 年 1 月 31 日
Hi,
Instead of using your graphics hardware you can try using the software version of OpenGL built into MATLAB.
To find if you are using hardware or software OpenGL, type 'opengl info'. If the line 'Software' shows false then you are using hardware OpenGL, else you are using software OpenGL.
To switch from hardware to software OpenGL, start MATLAB from the command prompt on your system using this command:
matlab -softwareopengl
To set your preferences so that MATLAB always starts with software OpenGL on this computer, execute this command at the MATLAB command line:
opengl('save','software')
This is a workaround for many graphics related issues that occur with Linux and Windows.
  2 件のコメント
rustein
rustein 2017 年 2 月 7 日
Thank you! Opening MATLAB from terminal as you suggested worked a treat.
Cheers!
Gaurav Tolani
Gaurav Tolani 2018 年 3 月 28 日
Worked for me too. thanks!

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

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by