# I need to using loop in my work but i dont know how? pls help.

조회 수: 1(최근 30일)
ali 3 Jun 2014
편집: ali 3 Jun 2014
I need to using loop in my work but i dont know how? pls help.
i have two eq the first one is
u=(k0+(kt*ZZ/T)+(k0*ZZ*te/T))*((pi*D*L)/(1000*vr*fr))+k0*(h1*L+h2); ...........1
the second is
Uf=(k0+(kt*ZZ/T)+(k0*ZZ*te/T))*((pi*D*Ls)/(1000*vs*fs))+k0*(h1*Ls+h2);............2
i want to make a loop for first eq to have three value of vr and fr and one loop for eq2 to have one value of vs and fs!!
so i have four variable vr, fr, vs, fs with limit number
this i want to run by GA.....

댓글을 달려면 로그인하십시오.

### 채택된 답변

BSantos 3 Jun 2014
Well, your question is missing a lot of information, if you really want to get some help.
What work are you doing? What is your goal? Just give people some basic information, otherwise no one can help you.
Grts.

댓글을 달려면 로그인하십시오.

### 추가 답변(2개)

ali 3 Jun 2014
Thank you for your comment, i will do it now, but it a lot of equation ^_^

#### 댓글 수: 0

댓글을 달려면 로그인하십시오.

ali 3 Jun 2014
i have two eq the first one is
u=(k0+(kt*ZZ/T)+(k0*ZZ*te/T))*((pi*D*L)/(1000*vr*fr))+k0*(h1*L+h2); ...........1
the second is
Uf=(k0+(kt*ZZ/T)+(k0*ZZ*te/T))*((pi*D*Ls)/(1000*vs*fs))+k0*(h1*Ls+h2);............2
i want to make a loop for first eq to have three value of vr and fr and one loop for eq2 to have one value of vs and fs!!
so i have four variable vr, fr, vs, fs with limit number
this i want to run by GA.....

댓글을 달려면 로그인하십시오.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!