From: Rahul Uk on
can we apply any conditions before starting a for loop....

for eg can we check if the variable in the loop is less than
a particular value???

for if(i<10) i = j+1:1:10
else end

From: French Caro on
"Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message
<fvrfj3$dj2$1(a)fred.mathworks.com>...
> can we apply any conditions before starting a for loop....
>
> for eg can we check if the variable in the loop is less than
> a particular value???
>
> for if(i<10) i = j+1:1:10
> else end
>
No you can't do that but btw what do you really want to do ?
if you just type
for i=j+1:1:10

The loop is done from j+1 to 10 except if j+1>10 then
nothing is done.
From: someone on
"Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message <fvrfj3
$dj2$1(a)fred.mathworks.com>...
> can we apply any conditions before starting a for loop....
>
> for eg can we check if the variable in the loop is less
than
> a particular value???
>
> for if(i<10) i = j+1:1:10
> else end
>

Maybe you can do what you want using a while loop (with an
optional break statement).