createToleranceFile
Create file correlating tolerance information with signal names
Syntax
cgvObj.createToleranceFile(file_name , signal_list, tolerance_list)
Description
cgvObj.createToleranceFile( creates
a MATLAB® file, named file_name , signal_list, tolerance_list)file_name, containing
the tolerance specification for each output signal name in signal_list.
Each signal name in the signal_list corresponds
to the same location of a parameter name and value pair in the tolerance_list.
Input Arguments
| Name for the file containing the tolerance specification for
each signal. Use this file as input to |
| A cell array of character vectors, where each
vector is a signal name for data from the model. Use signal_list = {'log_data.subsystem_name.Data(:,1)'}signal_list = {'log_data.block_name.Data(:,1)',...
'log_data.block_name.Data(:,2)',...
'log_data.block_name.Data(:,3)',...
'log_data.block_name.Data(:,4)'};To specify a global tolerance for the signals, include the reserved
signal name, signal_list = {'global_tolerance',...
'log_data.block_name.Data(:,1)',...
'log_data.block_name.Data(:,2)'};
tolerance_list = {{'relative', 0.02},...
{'relative', 0.015},{'absolute', 0.05}};Note If a model component contains a space or newline character, MATLAB adds
parentheses and a single quote to the name of the component. For example,
if the signal name has a space, log_data.('block name').Data(:,1)'block name' must
have two single quotes in the signal_list. For
example:signal_list = {'log_data.(''block name'').Data(:,1)'} |
| Cell array of cell arrays. Each element of the outer cell array
is a cell array containing a parameter name and value pair for the
type of tolerance and its value. Possible parameter names are tolerance_list = {{'relative', 0.02},{'absolute', 0.06},...
{'relative', 0.015},{'absolute', 0.05}}; |