.m to .exe converter
x=imread('USA12.BMP');
for i=0:63,
for j=0:15,
for k=0:7,
ii=j*8;
y = x(i,ii+k);
end
end
end
There are some problems with your code. Matlab array indices start from 1, not 0. So you first have to make sure your script runs correctly from the Matlab command window or pressing F5 when you are in the Matlab Editor.
What is this script for? Are you making some processing to the image. If so, you are trying to save the results into a variable y, which is not a vector, you will get only the value of the last processed pixel on y.
After this, if you want to make an executable from your script, you have to save it as a function, i.e.
function Y = imageproc(x)
where x could be the transformed image, or even a string with the name of the picture you want to process.
Then, you just call the command
mcc -m imageproc
And that will create your .exe, along with some other needed files to be run independently.
Hope it works.