in reply to Sending UDP Packets to MATLAB

Either you're AryanSinha trying to get someone else to write the code requested in Send a UDP Packet with bunch of numbers in PERL? that we couldn't write (since there wasn't enough information) and wouldn't write (because we gave plenty of hints, and people new to a language need to try in order to learn it), or you've just happened to start from nearly identical code as AryanSinha did, including the path starting with 'C:\Users\Aryan Sinha\...', but didn't see the other post which includes nearly identical code to yours.

If you are not the same individual, I suggest reading that thread, especially NetWallah's probing questions, my hint-filled post and Mr. Muskrat's question-filled post. You've given us a little more data (confirmation of Big Endian, and a list of possible types), but it's still not enough for us to magically write it for you. And we don't know what separators (if any) that Simulink's Decode block might want. If nothing else, at least point us to the specific documentation for that block.

After you've studied those answers, especially the documentation linked, and come up with your own nested processing loop: if that doesn't work, please come back (as either individual in either thread) and show us your progress, and ask specific questions about what you don't understand.

You won't learn if you don't try yourself.

update: rephrase first paragraph