Simulink "Goodness" Block, Function to Coefficeint

Is there a Simulink block that will allow me to compare a calculated/predicted data point with an actual data point, then generate a coefficient to improve the calculation of future data points? Or, is there a MATLAB function that can be turned into said Simulink block?

 Accepted Answer

With only one point, I don't know... but with a buffer of past points, this sounds like a cross-correlation:

More Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 15 Feb 2013
Edited: Azzi Abdelmalek on 15 Feb 2013
Yes, you can use interpreted matlab function block or matlab function block

4 Comments

I was hoping more for an example than a "yes, your can use a function".
Paul, I can't guess your hope, you did not ask for an example. I answered the second part of your question: is there a MATLAB function that can be turned into said Simulink block?. The first part is not clear for me. Read these links: interpreted matlab function and matlab function.
Okay: if I have a calculated/predicted data point and a corresponding real data point - how can I generate some sort of coefficient in Simulink/MATLAB to improve the accuracy of the calculated/predicted point (or future points)?
Paul: Perhaps you're looking for Adaptive Filters?

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!