MATLAB >> matlab reboot command?

by edchong Chong » Fri, 28 Aug 2009 09:57:11 GMT

I'm running some matlab code which eats up a lot of memory. After each iteration I need to clear the workspace. The thing is, after each iteration, the "clear" command takes a long time to execute, which is why I manually shutdown matlab (e.g. using task manager) and restart it to run the next iteration. It can take up to a few minutes for the clear command to take effect, but forcing matlab to shutdown and restart takes seconds.

Therefore, is there any way to automate this process? Like some reboot command? If not I am either forced to keep doing manual restarts, or I sacrifice a few minutes of time after each iteration.

Edmund

MATLAB >> matlab reboot command?

by Stan Bischof » Fri, 28 Aug 2009 11:32:00 GMT



How about a two-liner script that launches a new Matlab then exits the
current one?

Stan

Similar Threads

1. matlab plot command does not show plots after system reboot - MATLAB

2. matlab does not show plots after system reboot

I have installed matlab 7 (R14) on my machine running windows 2000.  After installation everything worked fine. However, after I restarted the  machine, the plot command does not bring up the plots. I am not getting any error messages on the command line (I know that the data is good). The demos are not working either. Basically, anything that pops up a gui or a new window does not work.

MATLAB itself is running fine, my codes run fine. The plots are simply not showing up.

I have tried updating/reinstalling JVM and  uninstalling/reinstalling matlab itself. Does anyone know why this is happening? Is there a fix for this? 

-thanks 
sri

3. Reboot Request - MATLAB

4. xPC Target reboots when using .NET03 compiler optimizations

5. Problem with executing commands on MATLAB command window - MATLAB

6. matlab command specgram and mesh plot command query

Gd day everyone,

I have a few questions which need some clarifications desperately.

Currently i have used a specgram command in matlab to do a short time
fourier transform or STFT on a signal. my command goes like:

nfft = 512;
Fs = Fsnew;
window = 51;
num_overlaps = 1;
[C1,F1,T1] = specgram(signal, nfft, Fs, window, num_overlaps); %
Computes the STFT of x

Matlab returns me a
-F1 array of 257 by 1
-T1 array of 527 by 1
-and a C1 array of 257 by 527
Is there a way to make my F1 and T1 of the same size?

I then did a coherence estimate by adding up the sum of the cross
terms, and taking its absolute value, and square all that, then
divide it by the sum of the auto terms at each Frequency values.

Therefore i had a coherence matrix of 257 by 1.

I wanted to do a mesh plot of T1,F1 and coherence but because
coherence is a vector. The mesh plot wont execute.

Is there anyway to execute a mesh plot of the variables with the
above array sizes mentioned above?

Pls give me some feedback, i will be very much grateful. Thanks.

7. 'Keyboard' command in MATLAB 6.5 removes control from command window - MATLAB

8. Help converting commands into matlab commands tia sal22