主题:[讨论]請問如何資料輸出問題
geant737
[专家分:0] 发布于 2007-10-26 21:42:00
晚安!
有個問題困擾小弟一整天了!
就是在matlab中,
如何輸出一個檔案名稱和輸入檔案名稱相同的檔案!
例如:
輸入 123.wma 輸出 123.txt
輸入 456.wma 輸出 456.txt
依此類推!
只是副檔名是.txt檔!
不知道有什麼指令可以使用!
我使用很多方法!可是都會發生錯誤!
煩請各位高手幫幫我解決吧!
謝謝!
回复列表 (共1个回复)
沙发
sagiltarivs [专家分:2610] 发布于 2007-10-27 12:42:00
字符串匹配!STRCMP Compare strings.
STRCMP(S1,S2) returns 1 if strings S1 and S2 are the same
and 0 otherwise.
STRCMP(S,T), when either S or T is a cell array of strings, returns
an array the same size as S and T containing 1 for those elements
of S and T that match, and 0 otherwise. S and T must be the same
size (or one can be a scalar cell). Either one can also be a
character array with the right number of rows.
When either S or T is a string array being compared to a cell or cell
array of strings, it is deblanked before comparision, i.e., the trailing
blanks are removed. If either S or T is a scalar string, i.e., a string
array with a single row then it is not deblanked before comparison.
STRCMP supports international character sets.
See also STRNCMP, STRCMPI, FINDSTR, STRMATCH, DEBLANK.
Overloaded methods
help opaque/strcmp.m
我来回复