MATLAB: How can use embedded matlab function block as inherited

embedded matlab function blockinheritedSimEventssimulink

I simulate discrete manufacturing system via simevents library. I know embedded matlab function block dosen't work inherited but I need previous attribute values in embedded matlab function block. I try unbuffer, buffer blocks, demux and bus blocks but they were not helpfull. I want to save previous attribute values for using embedded matlab function block. How can save previous attribute values as a vector ?

Best Answer

You can pass the output of your embedded function through a zoh block with sample time set to -1