tmfile_template.m

来自「MATLAB扩展编程by 孙永康.ZIP.有需要的朋友请来下载.」· M 代码 · 共 33 行

M
33
字号
function tmfile_template()
%TMFILE_TEMPLATE Standalone test function template.
%   TMFILE_TEMPLATE does setup and calls MFILE_TEMPLATE.
%   Creates the output file, OUTPUT_TEST.HTML.  Use this
%   template driver program to create your own standalone
%   test program.
%
%   Use this test driver with the MATLAB debugger to step
%   through your program.
%

%   Author(s): M. Greenstein, 05-18-98
%   Copyright 1998-2000 The MathWorks, Inc.
%   $Revision: 1.3 $   $Date: 2000/05/22 20:40:16 $

% STEP 1
% Set up input variables as they would come in from
% the HTML input form created from INPUT_TEMPLATE.HTML.
outstruct.my_input_variable_1 = some appropriate test value;

% STEP 2
% Call your application function that was created from
% <MFILE_TEMPLATE.M>.  Replace <MFILE_TEMPLATE> with the
% name of your application M-file.  Provide a test output
% file name for the optional argument by replacing <TEST_OUTPUT.HTML>
% with your test output HTML file name.
retstr = <MFILE_TEMPLATE>(outstruct, '<TEST_OUTPUT.HTML>');

% STEP 3
% Examine the file you supplied for <TEST_OUTPUT.HTML> in your
% web browser.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?