Summation In Matlab With Vectors
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to compute a summation over 1:N, and the expression is below:
I already defined the vectors = s11 and = smat and $Y_{dt}= Yd;
Any help would be appreciated! Thanks a lot
2 件のコメント
回答 (1 件)
David Hill
2022 年 2 月 14 日
No loop needed. Need to examine each array (s11,Yd,smat) and ensure they have the necessary elements (at least N). Recommend not using 'i' to index (something it can be confused for complex number).
I=(1:N)';
chi(I,1)= sum(beta.^(I+1)*gamma./s11(I,1).*(840*(1+eta)*exp(xi*Yd(I,1)-(1+eta)*smat(I,1))./...
(1+exp(xi*Yd(I,1)-(1+eta)*smat(I,1)).^2)).^(I-1));%did not square the exp term in denominator
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!