How can i pass an array of 10x1 to Simulink built in function. Output of this function should be one value of array element at a certain simulation time

9 views (last 30 days)
I have an array of data in which i have 10 elements in a column. i want to pass that array to a built in function of simulink. The output of built in function should be a single value of an array at a particular simulation time. For example : Array values are [100; 98; 97], when simulation time is 1us output of function should be 100, when simulation time is 2us output should be 98 so on.. i am doing curve fitting on my data and using an equation in built in function to evaluate a single value at a particular simulation time. But i am getting an error of approx 1% which is not desired in my work. Thanks in advance.

Answers (1)

Kaustubha Govind
Kaustubha Govind on 10 Jun 2014
Looks like you need the Buffer block. If you don't have a DSP System Toolbox license, you might want to try this File Exchange submission: Buffer and UnBuffer using Simulink Blocks.

Products

Community Treasure Hunt

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

Start Hunting!