Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Programming problem
Replies: 3   Last Post: Mar 4, 2013 2:49 PM

 Messages: [ Previous | Next ]
 Torsten Posts: 1,717 Registered: 11/8/10
Re: Programming problem
Posted: Mar 4, 2013 6:02 AM

"Milos Milenkovic" <m.milenkovic@mathworks.com> wrote in message <kh1pbg\$3ph\$1@newscl01ah.mathworks.com>...
> Dear,
> I have problem with replacing goto command in Matlab.
> The code is something like this:
> 1 generator of a random matrix B1=-0.1+(0.1+0.1).*rand(4,4);
> 2 set of matlab commands ->
> Ke=wn1(B0,B1,K0,K1); %wn je kod za racunanje kovarijanse belog suma
> [Delta1, Error1]=d1(B1,K1,Ke);
> [Delta0, Error0]=d2(B0,B1,K0,Delta1,Ke);
> 3 if (condition statement) ->
> if (Delta0(i,j)<2) && (Delta1(i,j)<2)
> [B0,B1]= up(B0,B1, Delta0, Delta1)
> 4 elseif goto 1 (generator again)
> So, how to close this set of steps?
> Best,
> M

http://www.mathworks.com/matlabcentral/fileexchange/26949-matlab-goto-statement

Best wishes
Torsten.

Date Subject Author
3/4/13 Milos Milenkovic
3/4/13 Torsten
3/4/13 Steven Lord
3/4/13 Milos Milenkovic