结果记录仪,编译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
.
创建一个临时目录,然后从Fixed-Point Designer™导入一个示例函数。
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;
fiaccel
|clearInstrumentationResults
|buildInstrumentedMex
|NumericTypeScope
|codegen
(MATLAB编码器)|墨西哥人