Menu

Error while using 3d plot in Matlab 2019b

2019-12-24
2020-03-02
  • Hesam Sharghi

    Hesam Sharghi - 2019-12-24

    Whenever I try to use the 3d plot in matcont GUI, I get the following error.

    Index exceeds the number of array elements (4).
    
    Error in GUIPlotConf/syncRegionWithAxes (line 226)
                         obj.configs{3}.region = newregion(5:6);
    
    Error in GUIPlotConf/fitAxis (line 393)
                 obj.syncRegionWithAxes();
    
    Error in GUIPlotConf>@(o,e)plotconf.fitAxis() (line 447)
                uimenu(mhandle , 'Label' , 'Fit Range' , 'Callback' , @(o,e)
                plotconf.fitAxis());
    
    Error while evaluating Menu Callback.
    

    I used Matlab 2019b version. I reinsatll matcont, but it did not help.

     

    Last edit: Hesam Sharghi 2019-12-24
    • hilmeijer

      hilmeijer - 2020-03-02

      Dear Hesam,

      The cause is Matlab not opening a real 3Dplot, but a figure with only two axis. This means that when you would change the plot ranges, then the z-axis limits are not defined (therefore the newregion(5:6) is the problem). Once you rotate the figure, this third axis is really there. So we need to add it.

      For now, a solution to avoid problems with the initial projection in a 3D graphic window of Matcont under MATLAB R2019b, is to add the command

                      view(45,45);
      

      after line 123
      obj.activatePlot(plotconf, true);
      in the file /matcont7p1/GUI/GUIOutputManager.m of your installation of MatCont.

      Best regards, Hil Meijer


      From: Hesam Sharghi hesamaero@users.sourceforge.net
      Sent: Tuesday, December 24, 2019 4:52 AM
      To: [matcont:discussion]
      Subject: [matcont:discussion] Error while using 3d plot in Matlab 2019b

      Whenever I try to use the 3d plot in matcont GUI, I get the following error.

      Index exceeds the number of array elements (4).
      
      Error in GUIPlotConf/syncRegionWithAxes (line 226)
                           obj.configs{3}.region = newregion(5:6);
      
      Error in GUIPlotConf/fitAxis (line 393)
                   obj.syncRegionWithAxes();
      
      Error in GUIPlotConf>@(o,e)plotconf.fitAxis() (line 447)
                  uimenu(mhandle , 'Label' , 'Fit Range' , 'Callback' , @(o,e)
                  plotconf.fitAxis());
      
      Error while evaluating Menu Callback.
      
      Index exceeds the number of array elements (4).
      
      Error in GUIPlotConf/syncRegionWithAxes (line 226)
                           obj.configs{3}.region = newregion(5:6);
      
      Error in GUIPlotConf/fitAxis (line 393)
                   obj.syncRegionWithAxes();
      
      Error in GUIPlotConf>@(o,e)plotconf.fitAxis() (line 447)
                  uimenu(mhandle , 'Label' , 'Fit Range' , 'Callback' , @(o,e)
                  plotconf.fitAxis());
      
      Error while evaluating Menu Callback.
      

      I used Matlab 2019b version. I reinsatll matcont, but it did not help.


      Error while using 3d plot in Matlab 2019b


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/matcont/discussion/762214/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
      • Hesam Sharghi

        Hesam Sharghi - 2020-03-02

        Dear hilmeijer,

        Thank you for your clearifications.

         
  • Dionysios Moutevelis

    Hello Hesam,

    I am facing the same problem. Have you solved it somehow?

     
    • Hesam Sharghi

      Hesam Sharghi - 2020-02-05

      Hi,

      I tried Matlab 2018 b, and everything seems fine.

       
  • Dionysios Moutevelis

    Thank you very much for your immediate response.

     

Log in to post a comment.