MATLAB: Problem with updating model parameters dynamically..

s-function

  1. Hi I used s-function builder for an optimization block and it generates three outputs .These 3 outputs i need to connect back to the system sothat it can be updated dynamically..since no port options are available for these parameters( eg: Hysteresis band value say,HB in a hyst.controller), i cant update them. please suggest a solution for the same.. Thank you.

Best Answer

  • You can use work vectors to store previous value(s) of the outputs and use that to update the next value (you don't need to physically connect the outputs back to the system). Please see Using Work Vectors for more information.