I would like to use matlab like a operating system .From the command window by using the matlab commands i wants to do the regular things.Where i can get the commands

 채택된 답변

Walter Roberson
Walter Roberson 2015년 6월 6일

0 개 추천

You can use the "!" operator followed by a Windows command. For example
!dir C:
to execute "dir C:" by a command shell.

댓글 수: 2

Stalin Samuel
Stalin Samuel 2015년 6월 6일
i need matlab command for the following
  1. Open My computer
  2. close current window
  3. shut down the PC
The formal name of My Computer is explorer.exe .
!explorer
For closing the current window, it depends whether you mean the current graphics figure or the current MATLAB tool window (such as the variable browswer) or if you mean a program outside of MATLAB such as you would normally use ALT-F4 to close.
Shutdown would be
!shutdown /s /t 0
or if you are using Windows 8 and want a full power off, you can use
!shutdown /p

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by