model Callbacks how to use InitFcn

I need a help in callbacks of simulink, i used an interpreted matlab function in simulink but i have an initials conditions, i tried to use callbacks to declare the initial conditions but it does not work (i used InitFcn callback)

3 Comments

Please elaborate why it doesn't work. If there is an error please paste the exact message.
Error in 'essai_part_val_st_hp_diss55_neww20082014/HP_3/Calcul mp'. Evaluation of expression resulted in an invalid output. Only finite double vector or matrix outputs are supported
as i see the model dont take the intial conditions that i give them.
I have another question, does the algorithm Newton raphson is implemented in Matlab, if yes with wich function, for exemple as i see its not implemented with "fsolve" function.

Sign in to comment.

Answers (0)

Products

Asked:

on 2 Sep 2014

Commented:

on 8 Sep 2014

Community Treasure Hunt

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

Start Hunting!