结果由仪器记录,编译C代码功能
showInstrumentationResults ('
mex_fcn
”)
showInstrumentationResults ('mex_fcn
“- - - - - -选项
”)
showInstrumentationResultsmex_fcn
showInstrumentationResultsmex_fcn选项
showInstrumentationResults ('
打开代码生成报告,显示调用检测的MEX函数的结果mex_fcn
”)mex_fcn
.将鼠标悬停在报表中的变量和表达式上,将显示日志信息。日志信息包括最小值和最大值、建议的分数或单词长度、当前范围的百分比,以及该值是否总是整数,这取决于您指定的选项。如果指定将它们包含在buildInstrumentedMex
函数,直方图也包括在内。同样的信息显示在Variables选项卡中的汇总表中。
showInstrumentationResults ('
为代码生成报告的检测结果部分指定选项。mex_fcn
“- - - - - -选项
”)
showInstrumentationResults
和mex_fcn
showInstrumentationResults
是打开代码生成报告的可选语法。mex_fcn选项
当你打电话showInstrumentationResults
,一个名为仪表
/mex_fcn
/ html / index . html
被创建。mex_fcn
是对应的检测MEX函数的名称。选择此文件将打开基于web的代码生成报告版本。从MATLAB中打开这个文件®,右键单击该文件并选择外开放的MATLAB.showInstrumentationResults
如果已检测,则返回错误mex_fcn
还没有被召唤。
|
使用工具创建的MEX函数 |
||||||||||||||
|
测量结果的选择。
|
生成一个测试MEX函数,然后运行一个测试工作台。调用showInstrumentationResults
打开代码生成报告。
请注意
记录的结果showInstrumentationResults
是之前对已检测MEX函数的所有调用的累积。清除日志请参见clearInstrumentationResults
.
创建一个临时目录,然后从定点设计器™导入一个示例函数。
tempdirObj = fidemo.fiTempdir (“showInstrumentationResults”)复制文件(fullfile (matlabroot,“工具箱”,“定点”,...“fidemos”,“fi_m_radix2fft_withscaling.m”),...“testfft.m”,“f”)
定义原型输入参数。
T = numerictype (“数据类型”,“ScaledDouble”,“缩放”,...“不明”);n = 128;x =复杂(fi (0 (n, 1), T));W = coder.Constant (fi (fidemo.fi_radix2twiddles (n), T));
生成一个检测MEX函数。使用- o
选项指定MEX函数名。
buildInstrumentedMextestfft- otestfft_instrumented...arg游戏{x, W}柱状图
运行一个测试台来记录仪器测试结果。调用showInstrumentationResults
打开报告。通过在报告中的变量上暂停,查看模拟最小值和最大值、建议的分数长度、当前范围的百分比和整数状态。
为I =1:20 x(:) = 2*rand(size(x))-1;y = testfft_instrumented (x);结束showInstrumentationResultstestfft_instrumented...-proposeFL-percentSafetyMargin10
通过单击查看变量的直方图在变量选项卡。
有关图的信息,请参见NumericTypeScope
参考页面。
然后关闭直方图显示,清除结果日志。
clearInstrumentationResultstestfft_instrumented
清除MEX函数,然后删除临时文件。
清晰的testfft_instrumented;tempdirObj.cleanUp;
buildInstrumentedMex
|clearInstrumentationResults
|fiaccel
|墨西哥人
|NumericTypeScope
|codegen
(MATLAB编码器)