Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
27
Добавлен:
09.02.2015
Размер:
324.1 Кб
Скачать

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

Соседние файлы в папке Библиотеки Matlab