Results 1 to 5 of 5

Thread: Problem with Matlab figures disappearing in Ubuntu 14.04

  1. #1
    Join Date
    Sep 2014
    Beans
    2

    Problem with Matlab figures disappearing in Ubuntu 14.04

    Hello,

    I have Matlab R2104b installed on my machine running Ubuntu 14.04. I've been using Matlab a lot for the past few weeks with no problems. I can start a figure window with a Matlab command like Fig = figure(1). When I then try to display an image, the figure window disappears. According to the Matlab icon on the Unity launcher, the figure exists; I just can't select it or view it. Any thoughts?

  2. #2
    Join Date
    Sep 2010
    Beans
    7

    Re: Problem with Matlab figures disappearing in Ubuntu 14.04

    This is an interesting issue. What version of MATLAB are you using? And how are you displaying the image (that is, with what functions)?

    After you display the image, if you do
    Code:
    >> figure(gcf);
    do you then see the image?

  3. #3
    Join Date
    Sep 2010
    Beans
    7

    Re: Problem with Matlab figures disappearing in Ubuntu 14.04

    Also, try launching MATLAB with the

    Code:
    $ matlab -softwareopengl
    startup flag. That will use the software version of OpenGL instead of the hardware version (this tends to resolve a lot of graphics issues).

  4. #4
    Join Date
    Sep 2010
    Beans
    2

    Re: Problem with Matlab figures disappearing in Ubuntu 14.04

    Quote Originally Posted by cturnes View Post
    Also, try launching MATLAB with the

    Code:
    $ matlab -softwareopengl
    startup flag. That will use the software version of OpenGL instead of the hardware version (this tends to resolve a lot of graphics issues).
    I am facing the same problem as the op. Unfortunately, using the suggested flag did not work

  5. #5
    Join Date
    Jul 2015
    Beans
    1

    Re: Problem with Matlab figures disappearing in Ubuntu 14.04

    I had the same problem with Matlab 2015. the same script ran with no problems in 2014(unlike your case), however when I use "drawnow" code under ''figure'' inside the script, the problem solved. may this one also work for u?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •