How to burn MATLAB builtin function "im2col" in Arduino board

Hello,
I am designing a Image Encoder project in which I have written a MATLAB code for it. But I am using an Arduino board for it. So is there any way to import "im2col" library of MATLAB into Arduino board without translating it into C language.
Thanks

Whilst I admit I know nothing about MATLAB or the im2col library if it is not written in C then its seems to me unlikely that it will work on a normal Arduino board which uses C++ as its native language. Which Arduino board are you intending to use ?

How do you plan to encode images, given only about 2000 bytes of memory?

You might be able to hold a 24x24 pixel colour icon in RAM, but that's about the limit!

Meh - maybe he has one of those boards with a lot of memory.

Just bite the bullet and code up im2col.