extracting matlab signal completely in simulink for processing it in MATLAB function block

Briefly: Running matlab function block after collecting complete signal from simulink
I want to process a signal in matlab function block. For this i want to have complete signal as an input to matlab function block. But in simulink it comes sample by sample. My matlab function block is using funtions like difference function and peak finding function, which require more than one or two samples for processing, therefore giving error. How can i input all samples (complete signal) to matlab function block so that matlab function block outputs properly.

Answers (1)

hi,
As I understood your exercise, you can employ this buffer example approach given here
Good luck.

Categories

Find more on Simulink in Help Center and File Exchange

Products

Asked:

on 4 Oct 2019

Community Treasure Hunt

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

Start Hunting!