I’ve not tried it myself, but you might try executing the following command at the top-level of your callback function:
persistent nsc_opt; I have no idea if it will work. Ray > On Jun 13, 2016, at 12:22 PM, Constantinos Heracleous <[email protected]> > wrote: > > Hello, > I’m trying to run matpower from simulink using a function call-back but I’m > getting "PERSISTENT declarations may only appear at the top-level.” error in > function mpoption line 551. > Has anyone run matpower from simulink? or can you suggest something to try to > fix the issue. > Thank you, > Constantinos > Begin forwarded message: > > >
