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!