how to generate code from matlab(simulink model) that can run on arduino?

i have made a simulink model on matlab. now i want to run this project on arduino. is there any way to generate code that can run on arduino?

You'll need to reimplement the same algorithm(s) in your sketch if you want it to run on the arduino.

Google for "matlab arduino simulink". Apparently it is possible but I have never used matlab.