"Danielle Leblanc" <danielleblanc2004@hotmail.com> wrote in message <i4gmoj$9aq$1@fred.mathworks.com>...
>
> Ids there a possibility to change the codes if I receive an error. For example
> A=B; (assume here I receive an error)
>
> if error
>
> A=C;
> end
>
> is ther anything similar to this in matlab ?

>
> Ids there a possibility to change the codes if I
> receive an error. For example
> A=B; (assume here I receive an error)
>
> if error
>
> A=C;
> end
>
> is ther anything similar to this in matlab ?

Most MATLAB programs return error codes.
So you can check the error code and program an
if-statement accordingly.