From: jenya polyakova on
Could you please help me. I need to find a way to loop this for i=1:10. Any help would be appreciated. THANKS!!!
gsod_temp1(ka) = regional_gsod1{index_r1(i)}(index_r2);
gsod_temp2(ka) = regional_gsod2{index_r1(i)}(index_r2);
gsod_temp3(ka) = regional_gsod3{index_r1(i)}(index_r2);
gsod_temp4(ka) = regional_gsod4{index_r1(i)}(index_r2);
gsod_temp5(ka) = regional_gsod5{index_r1(i)}(index_r2);
gsod_temp6(ka) = regional_gsod6{index_r1(i)}(index_r2);
gsod_temp7(ka) = regional_gsod7{index_r1(i)}(index_r2);
gsod_temp8(ka) = regional_gsod8{index_r1(i)}(index_r2);
gsod_temp9(ka) = regional_gsod9{index_r1(i)}(index_r2);
gsod_temp10(ka) = regional_gsod10{index_r1(i)}(index_r2);
From: Oleg Komarov on
What's "ka"?

Oleg
From: jenya polyakova on
"Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <i0cbdc$7vd$1(a)fred.mathworks.com>...
> What's "ka"?
>
> Oleg

Zdravstvuite, Oleg.
ka is just a counter (i.e. integer) and so is i
I have two outter loops for ka and i
From: jenya polyakova on
"Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <i0cbdc$7vd$1(a)fred.mathworks.com>...
> What's "ka"?
>
> Oleg

Hi Oleg,
ka and i are both integers (the outter loops)
From: Jan Simon on
Dear Jenya,

> Could you please help me. I need to find a way to loop this for i=1:10. Any help would be appreciated. THANKS!!!

I'm confused. Do you mean:

for i=1:10
gsod_temp1(ka) = regional_gsod1{index_r1(i)}(index_r2);
gsod_temp2(ka) = regional_gsod2{index_r1(i)}(index_r2);
...
end

??? Jan