Rebooting Matlab

I saw a very effective code sniplet to reboot matlab(unfortunately, there is no reboot command in matlab ) and i added it as a shortcut to workspace header. Here is the code:

% Reboots matlab. Currently only works if only one instance of matlab is running.
[x, out] = system(‘tasklist /v /fo csv | findstr /i “matlab.exe”‘);
if length(strfind(out, 10)) > 1
disp(‘More than one instance of Matlab are running, don”t know which to kill.’);
return;
end
out = out(length(‘”MATLAB.exe”,”‘)+1:end);
nd = strfind(out, ‘”‘);
mypid = out(1:nd(1)-1);
% Start a new instance of Matlab on a separate process in the same
% directory.
system([‘start matlab.exe -sd ‘ pwd()]);
system([‘taskkill /f /pid ‘ mypid])

Reklamlar

MATLAB ‘da Latex(TeX) scriptleri kullanmak

Bilen bilir, bir figürün sağına soluna matematiksel bir ifade koymak
istersiniz olmaz. Matlab'da bununla ilgili bir düzenleme varmış.

figure,

text('Interpreter','latex',... % text interp olarak latex kullaniyoruz

      'String','$$\int_0^x\!\int_y dF(u,v)$$',...%Latex string'i

      'Position',[.5 .5],... %koordinatlar(iceren kutunun sol orta noktasi)

      'FontSize',16) % font buyuklugu
Görsel

Matlab üzerine Tex yerleştirme/Insert TeX on Matlab