Is there a problem with the example for the FIXPT_CONVERT function included in the documentation for the Fixed-Point Blockset?

1 view (last 30 days)
I am trying to follow the example included with the FIXPT_CONVERT function, but I am receiving different results than what are described in the documentation for res.replaced, res.skipped, and res.encapsulated.
The documentation for this function is available in the MATLAB documentation and can be accessed by executing the following command at the MATLAB 6.5 (R13) prompt:
web([docroot '/toolbox/fixpoint/fixpt_convert.html'])

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This has been verified as an error within the documentation for the Fixed-Point Blockset 4.0 (R13) and later within the FIXPT_CONVERT section.
Prior to the Fixed-Point Blockset 4.0 (R13), nearly all Fixed-Point Blocks were completely separate from Simulink blocks. The FIXPT_CONVERT function would replace standard Simulink blocks with the Fixed-Point Blockset version of the blocks. For example, the Simulink Gain block would be replaced by Fixed-Point Gain, and be listed in the replaced category.
Beginning in R13, many Simulink and Fixed-Point blocks were unified. For example, R13 contains a unified Simulink Gain block that handles both standard cases and fixed-point cases. There is no need to replace blocks like this so they will no longer show out in the res.replaced category.
The results of the FIXPT_CONVERT function in the documentation example should produce the following results:
res.replaced
ans =
{}
res.skipped
ans =
UnitDelay: {3x1 cell}
ZeroOrderHold: {[1x40 char]}
Sum: {2x1 cell}
Gain: {6x1 cell}
Scope: {[1x42 char]}
Mux: {[1x28 char]}
res.encapsulated
ans =
SignalGenerator: {[1x30 char]}

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!