Search This Blog

Thursday, March 22, 2012

How to shut down computer using matlab

Today in my post i will give Matlab codes to shut down, restart, log off, hibernate

its easy to shut down computer/pc or laptop using matlab code

matlab shutdown pc less than 1 min

Note :this code may not work if there are Microsoft Office programs running at the time the shutdown is requested.

Just type following single line code to shut down computer

% code to shut down
system('shutdown -s')

% code to restart
system('shutdown -r')

% code to log off
system('shutdown -l')

% code to hibernate
system('shutdown -h')

%Shutdown and restart the computer
%After the system is rebooted,
%restart any registered applications.

system('shutdown -g')

for more info type

system('shutdown /?')

Related Posts :-
GUI Code for capture image - Matlab
how to run m file in gui using matlab
estore
How to see webcam preview in Matlab
How to capture image form webcam in Matlab
How to connect microsoft access to Matlab
How to install matlab 2007 on Windows7
How to connect Mysql to Matlab


1 comment:

  1. I blog often and I truly thank you for your information.

    The article has truly peaked my interest. I'm going to book mark your blog and keep checking for new details about once a week. I opted in for your Feed as well.
    My webpage - Repair Access database

    ReplyDelete