Effacer les filtres
Effacer les filtres

Matlab code for the equation

2 vues (au cours des 30 derniers jours)
TUSHAR MURATKAR
TUSHAR MURATKAR le 15 Jan 2020
I had written partial code for this equation but i want to confirm whether its written correct or not. My code is
for r = 1:1:length(R)% summ2
sum2 = 0;
prod=1;
for k= 1:1:length(R) % prod
if k~=r %when k not equal r
v1 = (1/lam(k))/ ((1/lam(k))-(1/lam(r)));
prod=prod*v1;
end
end
end

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by