Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8328207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:21:48+00:00 2026-06-09T01:21:48+00:00

Suppose I’m using the MATLAB IDE and happen to have some very large objects

  • 0

Suppose I’m using the MATLAB IDE and happen to have some very large objects in my workspace (e.g. arrays of 500k+ elements). Now, suppose that I stupidly and accidentally double click on one of these very large variables, which triggers a load to the array editor. Unfortunately, with arrays this big, MATLAB just hangs.

I’ve tried CTRL+C, CTRL+BREAK, CTRL+D, but none seem able to interrupt the behavior of the IDE. I know I can force matlab to quit, but reading all of those variables into the workspace in the first place takes a lot of time, and I may have unsaved changes in an editor window, etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:21:49+00:00Added an answer on June 9, 2026 at 1:21 am

    I found a way, but it’s not the best, it requires a change of path and back once to get a handle to the original openvar

    function openvar(name,array)
        persistent org_openvar
        if isempty(org_openvar)
            curdir=pwd;
            cd(fullfile(matlabroot,'toolbox/matlab/codetools'));
            org_openvar = @openvar;
            cd(curdir);
        end
    
        if numel(array)>1e5
            if strcmp(questdlg(sprintf('Opening ''%s'' which has %d elements.\n\nAre you sure? This is gonna take a while!',name,numel(array)), ...
            'Variable editor','Yes','Cancel','Cancel') , 'Yes')
                    org_openvar(name,array)
                end
        else
            org_openvar(name,array)
        end
    end
    

    getting that handle is the biggest problem, calling it is just fine. If openvar would be built in, you could use the function builtin:

    builtin('openvar',name,array)
    

    but this is unfortunately not the case 🙁
    str2func in combination with the complete path also doesn’t work, at least I don’t get it to work…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a large list of words. For an example: >>> with open('/usr/share/dict/words')
suppose we have this next sample code: while(some condition){ lock1.lock(); . . } the
Suppose we have 2 Arrays say : A [] => 1 2 3 4
Suppose , i have some x test-cases to be read from input, where each
Suppose I have a stream of [acme] objects that I want to expose via
Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX
Suppose I have some lookup table, q(w, x, y, z) , where various combination
suppose, I have some content, which i want to fill in, based on radiobuttons,
suppose i have a .on() function wherein i select multiple ids $(#i, #am, #your,
Suppose I have a pure virtual method in the base interface that returns to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.