DSPRelated.com
Forums

from Saadi on 'goto' in matlab

Started by saadihossain August 2, 2007
Hello friends

I hope all is doing well. It's really good to have such a valuable
forum where all us with common-interest can join.

I have a c-mex sfunction which has a command with 'goto'. I want to
make an m-file similar to that c file.

for example:

tenim:
if (fabs(LU_A[kay][idebut]) >= fabs(LU_A[jay][idebut])) {
if (jay == nnn) {
iamax = kay;
}
else {
jay = jay + 1;
goto tenim;
}
}
how do i write it in m-file i.e. matlab comand?

Plz help me in this regards.

I have been stuck with it for quite a long time.

thanks,
Saadi