필터 지우기
필터 지우기

Create a shortcut to a file in a script

조회 수: 6 (최근 30일)
Edward
Edward 2013년 10월 15일
댓글: Jan 2013년 10월 15일
Hi, i have two problems,
I need to check if a folder exists, it not i create a folder.
After this i need to create a shortcut to a text file in this new or existing folder.
How do i check if a folder exists and create a file shortcut in MATLAB?
  댓글 수: 1
Jan
Jan 2013년 10월 15일
What exactly is "a shortcut" here?

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

답변 (1개)

Matthew Crema
Matthew Crema 2013년 10월 15일
To create a folder if it does not exist:
if ~exist(foldername,'dir')
mkdir(foldername)
end
To create a shortcut you might use your operating system's appropriate command. Type "help system" at the MATLAB command line.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by