Way to determine Look-up table values from input/output data

Here's what I'm trying to do:
I have 3 Look-up tables in series in a Simulink model. I would like to replace with a single look-up table.
I see that I can determine lookup tables parameters from input/output data using the Simulink Design Optimization Toolbox (which I do not have here, unfortunately, but have lots of other toolboxes). Is there any other method I could use?
Thanks in advance for any help,
-Matt Lawson

Answers (2)

The Curve Fitting Toolbox is ideal for this sort of thing, but I've also used the fixpt_look1_func_approx utility to achieve the same sort of thing before. (I can't speak for which might be a better option)

2 Comments

Hi Kaustubha,
I looked at fixpt_look1_func_approx and you need to specify the f(x) which I don't have, not sure how I could use that.
I'm looking at the Curve Fitting Toolbox, hopefully will find a function that will work there. Any recommendations? Thanks.
Ah! You're right - it's been a while since I used that function. I haven't used the Curve Fitting Toolbox, so can't offer much useful advice there. But I just remembered about the polyfit function - it does Polynomial curve fitting.

Sign in to comment.

Hi All, i like to create lookup tables of 511 local binary pattern, also from 10000000 bis 111111110, can somebody help, Thanks

Asked:

on 26 Jan 2012

Community Treasure Hunt

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

Start Hunting!