找回密码
 注册
Simdroid-非首页
查看: 173|回复: 5

请教:matlab 建立新文件夹的命令是什么?

[复制链接]
发表于 2007-4-16 14:59:06 | 显示全部楼层 |阅读模式 来自 广东广州
我的GUI程序需要建立一个新文件夹,以存放处理之后的数据。我看到matlab有类似于dos的cd命令,可以进入某个路径,就试着用help md,想看看matlab中建立文件夹的命令是不是也和dos相同,结果是没有这个命令。请问大家,matlab 中建立新文件夹的命令是什么?当然,如果在外部打开文件夹,然后指定该文件夹也可以。但是,“指定文件夹”又该怎样实现?uigetfile只能指定文件,不能指定文件夹。
发表于 2007-4-16 16:22:56 | 显示全部楼层 来自 北京海淀
Simdroid开发平台
help mkdir


Examples

Create a Subdirectory in Current Directory

To create a subdirectory in the current directory called newdir, type
mkdir('newdir')

Create a Subdirectory in Specified Parent Directory

To create a subdirectory called newdir in the directory testdata, which is at the same level as the current directory, type
mkdir('../testdata','newdir')

评分

1

查看全部评分

发表于 2007-4-16 21:02:35 | 显示全部楼层 来自 湖北武汉
uigetdir
Open standard dialog box for selecting a directory
Syntax uigetdir
directory_name = uigetdir
directory_name = uigetdir(start_path)
directory_name = uigetdir(start_path,dialog_title)

或者C MEX函数
uigetfolder,点击下载

[ 本帖最后由 shunfly 于 2007-4-16 21:04 编辑 ]

评分

1

查看全部评分

发表于 2007-4-16 21:15:27 | 显示全部楼层 来自 广东深圳
google dir:)
>>lookfor dir
ADDPATH Add directory to search path.
CD     Change current working directory.
COPYFILE   Copy file or directory.
DEPDIR  Locate dependent directories of an M-file or P-file.
DIR List directory.
FILEATTRIB    Set or get attributes of files and directories.
ISDIR  True if argument is a directory.
JAVARMPATH Remove directory from dynamic java path.
LS List directory.
MKDIR Make new directory.
MOVEFILE Move file or directory.
PWD Show (print) current working directory.
RMDIR Remove directory.
RMPATH Remove directory from search path.
WHAT List MATLAB-specific files in directory.
FLIPLR Flip matrix in left/right direction.
FLIPUD Flip matrix in up/down direction.
ROTATE Rotate objects about specified origin and direction.
UIGETDIR Standard open directory dialog box
FILESEP Directory separator for this platform.
MATLABROOT Root directory of MATLAB installation.
PREFDIR Preference directory name.
TEMPDIR Get temporary directory.
COVERAGERPT  Scan a directory for profiler line coverage.
DEPRPT  Scan a file or directory for dependencies.
DIFFRPT  Visual directory browser
DOFIXRPT  Scan a file or directory for all TODO, FIXME, or NOTE messages.
FILEBROWSER View the contents of the Current Directory.
FIXQUOTE  Double up any single quotes appearing in a directory name
HELPRPT  Scan a file or directory for help.
MLINTRPT  Scan a file or directory for all M-Lint messages.
STANDARDRPT  Visual directory browser
VISDIR  Directory reporting HTML gateway function.
......

评分

1

查看全部评分

 楼主| 发表于 2007-4-17 09:51:03 | 显示全部楼层 来自 广东广州
太感谢楼上三位了,不仅告诉了我如何创建新文件夹,而且告诉了我如何指定文件夹,谢谢。
发表于 2010-5-15 11:03:53 | 显示全部楼层 来自 浙江宁波
很有用哈!!
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-6 23:24 , Processed in 0.046994 second(s), 19 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表