MATLAB:

MATLAB

1、 ischar( )    函数:

ischar - Determine whether item is character array

This MATLAB function returns logical 1 (true) if A is a character array and

logical 0 (false) otherwise.

 tf = ischar(A)

2、 feof函数

feof - Test for end-of-file

This MATLAB function returns 1 if a previous operation set the end-of-file

 indicator for the specified file.


3、 sscanf 函数

 This MATLAB function reads data from string str, converts it according to the

    format, and returns the results in array A.

    A = sscanf(str, format)

    A = sscanf(str, format, sizeA)

    [A, count] = sscanf(...)

    [A, count, errmsg] = sscanf(...)

    [A, count, errmsg, nextindex] = sscanf(...)
4、deblank

deblank - Strip trailing blanks from end of string


    This MATLAB function removes all trailing whitespace and null characters from
    the end of character string str.


    str = deblank(str)
    c = deblank(c)




你可能感兴趣的:(MATLAB:)