thank you Saad, but since I am using trial package I don't have embedded system toolbox to generate C code. but simulink support is working well.can people detector also be implemented in similar manner as in attached pdf?
Yes, embedded toolbox will not be available in trail package and we can't download the toolbox separately also since we will be using our math works login to down load supporting package, it says it is denied for trial versions