sum of series of following equation

2 ビュー (過去 30 日間)
Arvind Sharma
Arvind Sharma 2020 年 10 月 14 日
コメント済み: Ameer Hamza 2020 年 10 月 14 日
lamda=0.3:0.01:1.4; % unit micro-meter
Ec2=(1.24./lamda);
alpho=2e4;
alpha= real(alpho.*(sqrt(Ec2-1.51)));
d=1e-4;
JPh2=exp(-1.*alpha.*d); % equation 1
lamda1=0.82;
% now the summation of eqaution 1 goes from 0 to lamda1,
so how to calculate this sum of series

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 10 月 14 日
You can use logical indexing to isolate the required values and then use sum()
lamda=0.3:0.01:1.4; % unit micro-meter
Ec2=(1.24./lamda);
alpho=2e4;
alpha= real(alpho.*(sqrt(Ec2-1.51)));
d=1e-4;
JPh2=exp(-1.*alpha.*d); % equation 1
lamda1=0.82;
idx = lamda < lamda1;
out_value = sum(JPh2(idx));
  2 件のコメント
Arvind Sharma
Arvind Sharma 2020 年 10 月 14 日
any other way to calculate
Ameer Hamza
Ameer Hamza 2020 年 10 月 14 日
What is wrong with this method?

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

その他の回答 (0 件)

カテゴリ

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