Matlab connect strings, seperate pathstr, name and ext

来源:互联网 发布:sql server 查询阻塞 编辑:程序博客网 时间:2024/05/22 19:54

1. connect strings

fname = strcat('C:\Users\user_name\work\video\',avi_name{1});   


2. seperate pathstr, name and ext

[pathstr, name, ext] = fileparts(filename) returns the path name, file name, and extension for the specified file. The file does not have to exist. filename is a string enclosed in single quotes. The returned ext field contains a dot (.) before the file extension.

原创粉丝点击