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 7981967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:32:12+00:00 2026-06-04T10:32:12+00:00

My program has run a long time. I began to run it yesterday. Now

  • 0

My program has run a long time. I began to run it yesterday. Now I cannot see the command window and editor by clicking on them on the task bar. I tried the “switch to” button of the task manager, too.

The program displays some messages on the command window when it is running. This determines the current step of the program.

How can I find out if my program is running correctly? Alternatively, how can I find if it is trapped in an infinite loop or that MATLAB has crashed.

Both of CPU cores are busy. CPU usage is between 50-70 percent, and MATLAB occupies 1,658,044 K of memory.

  • 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-04T10:32:14+00:00Added an answer on June 4, 2026 at 10:32 am

    Matlab has a tendency to crash if left open and running for long periods of time. It has happened to me more times than I can remember. If Matlab is not responsive after a day, then I’ve rarely had success in allowing the code to finish. You will probably need to start your program again.

    There are a couple of things I recommend you do when working with long running pieces of code.

    First, find a way to save intermediate results. Since my work is generally with iterative numerical algorithms, I save my workspace after a few iterations of my algorithm. Something simple like temp.mat. That way if Matlab crashes, you can start your work again from your intermediate results.

    Second, if you don’t need the Matlab GUI, then don’t use it. In your case, open a DOS prompt and run Matlab without the desktop. The command to do so will be something like:

    start matlab -nosplash -nodesktop -minimize -r matlab_filename_here -logfile c:\temp\logfile
    

    I’m not a Windows user. That command might launch the GUI, but leave it hidden. It doesn’t launch on *NIX systems and this definitely helps in successful evaluation of long running programs. Try it and see if it helps.

    Best of luck!

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

Sidebar

Related Questions

This program I use has it's own variables to set when you run it,
A colleague has a batch script program which needs to to run on a
The batch file has only two lines: c:\program.exe ... pause but pause does't run
I have a C++ code base that has been working for a long time.
I'm porting a program that had a very long loading time which was not
I have a program that performs a long-time computations, so I want to speed
My program has two threads: Main execution thread that handles user input and queues
My program has one dialog and two sockets. Both sockets are derived from CAsyncSocket,
My program has the following class definition: public sealed class Subscriber { private subscription;
If a program has literally just deserialized an object (doesn't really matter how, but

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.