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
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Kaustubha Govind
2014-6-10
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.
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!