- •Is the same as the previous syntax, but accepts attribute value pairs,
- •Xlsfinfo Determine if file contains Microsoft Excel spreadsheet.
- •Internet resource
- •Is a string. Message is either a string or a cell array. If it is a
- •Variables and the Windows registry.
- •Zip file access
- •Individual file can be specified relative to the current directory or
- •Tar file access
- •Individual file can be specified relative to the current directory or
- •Gzip file access
- •Individual file can be specified relative to the current directory or
- •Formatted file I/o
- •Icinterface/fgets
- •If %s is used an element read may cause several matlab matrix
- •Integer NaN as zero.
- •If true, textscan treats
- •File opening and closing
- •It on the matlab search path. On unix systems, filename may also start
- •Binary file I/o
- •If the most recent I/o operation was successful, message is empty
- •Indicator in the specified file. Position is indicated in bytes
- •Memory-mapped file support
- •Is correct for platform it's executed on.
- •Is also a valid partial pathname.
- •Serial port support
- •Instrfind will not find an object with a Name property value of
- •Instrfind will not find an object with a Name property value of
- •Timer support
- •Visible timer objects whose property names and property values match
- •Command window I/o
- •In the current directory. The folder contains an m-file for each web service
Xlsfinfo Determine if file contains Microsoft Excel spreadsheet.
[A, DESCR, FORMAT] = XLSFINFO('FILENAME')
A contains the message 'Microsoft Excel Spreadsheet' if FILENAME points to a
readable Excel spreadsheet, but is empty otherwise.
DESCR contains either the names of non-empty worksheets in the workbook
FILENAME, when readable, or an error message otherwise.
FORMAT contains the specific Excel format of the file, if an Excel
ActiveX Server can be started. Otherwise it is empty. Specific Excel
formats include, but are not limited to,
'xlWorkbookNormal', 'xlHtml', 'xlXMLSpreadsheet', 'xlCSV'
NOTE: When an Excel ActiveX server cannot be started, functionality is
limited in that some Excel files may not be readable.
See also xlsread, xlswrite, csvread, csvwrite.
Reference page in Help browser
doc xlsfinfo
Internet resource
<urlread> - Returns the contents of a URL as a string.
URLREAD Returns the contents of a URL as a string.
S = URLREAD('URL') reads the content at a URL into a string, S. If the
server returns binary data, the string will contain garbage.
S = URLREAD('URL','method',PARAMS) passes information to the server as
part of the request. The 'method' can be 'get', or 'post' and PARAMS is a
cell array of param/value pairs.
[S,STATUS] = URLREAD(...) catches any errors and returns 1 if the file
downloaded successfully and 0 otherwise.
Examples:
s = urlread('http://www.mathworks.com')
s = urlread('ftp://ftp.mathworks.com/README')
s = urlread(['file:///' fullfile(prefdir,'history.m')])
From behind a firewall, use the Preferences to set your proxy server.
See also urlwrite.
Reference page in Help browser
doc urlread
<urlwrite> - Save the contents of a URL to a file.
URLWRITE Save the contents of a URL to a file.
URLWRITE(URL,FILENAME) saves the contents of a URL to a file. FILENAME
can specify the complete path to a file. If it is just the name, it will
be created in the current directory.
F = URLWRITE(...) returns the path to the file.
F = URLWRITE(...,METHOD,PARAMS) passes information to the server as
part of the request. The 'method' can be 'get', or 'post' and PARAMS is a
cell array of param/value pairs.
[F,STATUS] = URLWRITE(...) catches any errors and returns the error code.
Examples:
urlwrite('http://www.mathworks.com/',[tempname '.html'])
urlwrite('ftp://ftp.mathworks.com/README','readme.txt')
urlwrite(['file:///' fullfile(prefdir,'history.m')],'myhistory.m')
From behind a firewall, use the Preferences to set your proxy server.
See also urlread.
Reference page in Help browser
doc urlwrite
<ftp> - Create an FTP object.
FTP Create an FTP object.
FTP(host,username,password) returns an FTP object. If only a host is
specified, it defaults to "anonymous" login.
An alternate port can be specified by separating it from the host name
with a colon. For example: ftp('ftp.mathworks.com:34')
Reference page in Help browser
doc ftp
<sendmail> - Send e-mail.
SENDMAIL Send e-mail.
SENDMAIL(TO,SUBJECT,MESSAGE,ATTACHMENTS) sends an e-mail. TO is either a
string specifying a single address, or a cell array of addresses. SUBJECT
