现在的位置: 首页 > 综合 > 正文

Matlab connect strings, seperate pathstr, name and ext

2013年05月15日 ⁄ 综合 ⁄ 共 328字 ⁄ 字号 评论关闭

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.

抱歉!评论已关闭.