Be the first to rate this file! 113 downloads (last 30 days) File Size: 4.71 KB File ID: #21995

Embedded MATLAB Example: Converting a simple algorithm to fixed point

by Rick Rosson

 

04 Nov 2008

Code covered by BSD License  

Shows how to convert an algorithm to fixed point for Embedded MATLAB

Download Now | Watch this File

File Information
Description

This example illustrates the process of taking an simple MATLABĀ® algorithm designed for floating point and converting it to a polymorphic representation that supports not only all built-in data types, but also any fixed-point representation.

myfilter_01.m is the original floating point representation
myfilter_02.m is polymorphic across all built-in data types
myfilter_03.m is polymorphic for all built-in and fixed-point data types.
build.m is a build function that allows you to generate C-code and MEX functions from the M-functions.
test.m is a test bench.

Required Products Fixed-Point Toolbox
Real-Time Workshop
MATLAB release MATLAB 7.7 (R2008b)
Zip File Content  
Other Files build.m,
myfilter_01.m,
myfilter_02.m,
myfilter_03.m,
test.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
eml Rick Rosson 04 Nov 2008 13:36:40
embedded matlab Rick Rosson 04 Nov 2008 13:36:40
fixed point Rick Rosson 04 Nov 2008 13:36:40
iir Rick Rosson 04 Nov 2008 13:36:40
filter Rick Rosson 04 Nov 2008 13:36:40
emlc Rick Rosson 04 Nov 2008 14:45:49
biquad Rick Rosson 04 Nov 2008 14:46:00
second order section Rick Rosson 25 Dec 2008 13:14:38
sos Rick Rosson 25 Dec 2008 13:14:38
rtw Rick Rosson 11 Feb 2009 12:50:10
real time workshop Rick Rosson 11 Feb 2009 12:50:10
emlmex Rick Rosson 11 Feb 2009 12:50:37
embedded Rick Rosson 11 Feb 2009 12:51:31
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com