could anyone help me how to write the expression in matlab
Afficher commentaires plus anciens
Could anyone help me how to write the attached expression in matlab
1 commentaire
Walter Roberson
le 22 Août 2018
Is it correct that that is intended to be a recursive definition for tau ? If so then we would need to know t_0 in order to calculate the other values.
Réponses (1)
Yuvaraj Venkataswamy
le 22 Août 2018
if true
M=yourInteger; % greater than 1
for k=0:M-1
t(M-1)=[M-1;k].*t(k)
end
end
3 commentaires
Walter Roberson
le 22 Août 2018
Unfortunately not. The notation
(M-1)
(k )
is the number of combinations of (M-1) choose k,
nchoosek(M-1, k)
Also, you are assigning to the same location t(M-1) each time, and you are not doing a summation.
Stephen23
le 22 Août 2018
Yuvaraj Venkataswamy
le 22 Août 2018
Yes sir. You are correct. But, in the attached figure, the notation is look like a vector. In that case, I did. Thank you.
Catégories
En savoir plus sur Whos dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!