I m a basic learner of matlab. Ihave to solve a eq like Tk=(Tk+1)+Td where Td=1.72 by for loop.

2 vues (au cours des 30 derniers jours)
I m looking like Td=1.72; T7=52; for k=6:2 Tk = (Tk+1)+Td; end but Tk and Tk+1 are not defined then I think I can solve it by array Calculations Plz help me as early as possible Plz

Réponse acceptée

Matt J
Matt J le 23 Nov 2012
Modifié(e) : Matt J le 23 Nov 2012
Perhaps you meant this?
T(7)=52;
for k=6:-1:1
T(k)=T(k+1)+Td;
end

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Optimization Toolbox 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