I made a mistake in my previous comment. Here is an update
It looks like the loops definition in the thread function should be
for(j=ini;j<fin;j++)
for(i=0;i<cols;i++)
{
for(jj=0;jj<v;jj++)
for(ii=-v;ii<=v;ii++)
{
works fast but wrong and crashes
It looks like the loops definition in the thread function should be
for(j=ini;j<fin;j++)
for(i=0;i<cols;i++)
{
for(ii=-v;ii<=v;ii++)
for(jj=-v;jj<=v;jj++)
{
This product works great if I run the executable after starting Matlab every time. Is there a way to make it so that I don't have to do this? That is, is there a way to get Matlab to recognize the Cntl-Tab hot key without manually running the executable when Matlab starts up?
A small remark - the latest versions of the Matlab editor (R2006a and above I think) do support Ctrl+F4 for closing windows, so the application might accidentally have a double Ctrl+F4 sent and cause two files to be closed on one key combination. This is not desirable behavior. So I think either the key combination should be optional, or more exact.