help me please to write matlab code for the mathematical function attached in the pdf file ?

1 回表示 (過去 30 日間)
help me please to write matlab code for the mathematical function attached in the pdf file ?
  3 件のコメント
Abdelaziz Darwiesh
Abdelaziz Darwiesh 2018 年 3 月 25 日
yes it is correct , the only term is out the summation is [((row)^j+1/2)/(N+1)]. this term is only out but the exponent-ion in the summation is true because the (new) variable is equal (i*pi/N+1), i am sorry because i did not explain it.
Abdelaziz Darwiesh
Abdelaziz Darwiesh 2018 年 3 月 25 日
this is the function after adding some illustrations

サインインしてコメントする。

回答 (1 件)

elham kreem
elham kreem 2018 年 3 月 24 日
at the first , i put some values to run the equation ; the second , i run a part from this equation , because the part of the sum is not run , rau =0.5; v= 6; lamda = 2; mu = 4 ; c= 1; r= 3; n= 3; s2 = 1+rau-2*sqrt(r)*cos(v)
k=((-lamda-mu+2*sqrt(lamda*mu)*cos(v)) / (r*c)) * v
sum1=0
for i =1 : n
s1(i)=sin(v*i)- sqrt(rau) * sin(i+1)*v
end
for j =1 : 10
for i =1 : n
k1(j,i)= (rau^((j+1)/2)) / (n+1)
end
end
with best
  2 件のコメント
Abdelaziz Darwiesh
Abdelaziz Darwiesh 2018 年 3 月 25 日
thank you, i think if can write myfunction as smaller functions and call them in one loop it may be more correct in the results because the results according for this code not correct when we test it by hand.
Abdelaziz Darwiesh
Abdelaziz Darwiesh 2018 年 3 月 25 日
this is the function after adding some illustrations

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by