MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guia de Instalação Página 61: 4htmlrep

htmlrep

4-3
4htmlrep

Purpose

Substitute values for variable names in HTML document

Syntax

outstring = htmlrep(instruct,infile)
outstring = htmlrep(instruct,infile,outfile)
outstring = htmlrep(instruct,infile,outfile,
attributes
)

Description

htmlrep(instruct,infile)
replaces all MATLAB variables in
infile
, an
HTML document, with corresponding values of variables of the same name in
instruct
. Variables can be character strings, matrices, or cell arrays
containing strings and scalars. String and scalar variables are replaced by
straight substitution. Output is returned in
outstring
. Variable names in
infile
must be enclosed in dollar signs, e.g.,
$varname$
.
outstring = htmlrep(instruct,infile,outfile)
additionally writes output
to the HTML document
outfile
(for stand-alone testing).
instruct
is a MATLAB structure containing variable names (field names) and
corresponding values.
infile
is an HTML template file with MATLAB variable names enclosed in
dollar signs.
outfile
is the name of an output file for optional standalone testing.
outstring = htmlrep(instruct,infile,outfile,
attributes
)
provides
additional directives to
htmlrep
. The third argument in this form of the
command must be present for the
attributes
argument to be recognized. Use
an empty string
' '
for the third argument if you do not want to direct output
to a file. The
attributes
argument is a MATLAB string (enclosed in
' '
) with
the listed attributes separated by spaces.
Two attributes are allowed.
noheader
Suppresses the output of the HTML header
'Content-type:
text/html\n\n'
to
outfile
and
outstring.
extendmemory
Enables dynamic memory extension beyond 256 KB.

Ficheiro PDF · ·

Imprimir

Imprimir documento

Partilha

Perguntas sobre MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE

Ainda não há perguntas sobre este manual. Faça a primeira.

Fazer uma pergunta

Respondemos a partir do manual e indicamos a página. A pergunta é publicada no site depois de verificada.

Todas as perguntas e respostas ›

Manuais e produtos relacionados com Software MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE