MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guía de instalación Página 41: Debugging Your Application
Debugging Your Application
2-13
Debugging Your Application
Debugging Procedure
You can use the MATLAB debugging facility plus your Web browser to
debug your application before making it available to all users.
An effective method of debugging is to write your application M-file to
accept two arguments, as in
retstr = webmagic(structure, testfile)
You can use the second argument to create an HTML file that displays
test output.
As a first debugging step, create a driver program that sets up the input
variables and calls the main function. You can use the MATLAB
debugging facilities to check the logic of your test program. The file
twebmagic.m
located in
<matlab>/toolbox/webserver/wsdemos
is an
example of such a driver program. (Note the use of the
wssetfield
function to create the test input variables. This is optional. Elements of
the structure
s
could be created directly, e.g.,
s.msize = '5'
.)
function twebmagic()
%TWEBMAGIC Example standalone test of webmagic function.
%TWEBMAGIC Does setup and calls webmagic. Creates the output
file, %twebmagic.html.
% Set up input variables.
s = {};
s = wssetfield(s, 'mlmfile', 'webmagic');
s = wssetfield(s, 'msize', '5');
s = wssetfield(s, 'mldir', '.');
% Create an output test file.
str = webmagic(s, 'twebmagic.html');
Because the driver program calls
webmagic
with two arguments,
webmagic
writes its output to the file
twebmagic.html
. The call to
htmlrep
within the
webmagic
function handles this.
retstr = htmlrep(outstruct,'webmagic2.html', outfile)
Archivo PDF · ·
Preguntas sobre MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE
Todavía no hay preguntas sobre este manual. Haga la primera.
Productos y manuales relacionados para Software MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE
- Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual de usuario
(330 páginas) - Software MATLAB CONTROL SYSTEM TOOLBOX 9 Guía de usuario
(649 páginas) - Software MATLAB FINANCIAL DERIVATIVES TOOLBOX Manual de usuario
(119 páginas) - Software MATLAB SIMEVENTS RELEASE NOTES Guía de usuario
(114 páginas) - Software MATLAB SIGNAL PROCESSING TOOLBOX 6 Manual de usuario
(60 páginas) - Software MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guía de usuario
(674 páginas) - Software MATLAB IMAGE PROCESSING TOOLBOX - RELEASE NOTES Guía de usuario
(122 páginas) - Software MATLAB SYSTEM IDENTIFICATION TOOLBOX 7 Guía de usuario
(531 páginas) - Software MATLAB DATABASE TOOLBOX RELEASE NOTES Guía de usuario
(298 páginas) - Software MATLAB DESIGN HDL CODER RELEASE NOTES Guía de usuario
(410 páginas) - Software MATLAB POLYSPACE 7 Guía de instalación
(618 páginas) - Software MATLAB PARALLEL COMPUTING TOOLBOX 4 Guía de usuario
(128 páginas) - Software MATLAB DATABASE TOOLBOX RELEASE NOTES Guía de usuario
(684 páginas) - Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de usuario
(408 páginas) - Software MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Manual de usuario
(22 páginas) - Software MATLAB CURVE FITTING TOOLBOX - RELEASE NOTES Manual de usuario
(54 páginas) - Software MATLAB GAUGES BLOCKSET RELEASE NOTES Guía de usuario
(114 páginas) - Software MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Especificaciones
(126 páginas) - Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Especificaciones
(216 páginas) - Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guía de usuario
(386 páginas)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86