how to index a variable?

1 vue (au cours des 30 derniers jours)
era
era le 17 Jan 2022
Commenté : KSSV le 17 Jan 2022
I want to index this force that are related to the first step,
for k=1:n
for k=1
f1(k)=[-T 0 0 0 0 0]'; %[N]
f2(k)=[T 0 0 0 0 0]';
f3(k)=[0 0 0 0 0 0] ';
lump.f(k)=[f1(k) f2(k) f3(k)];
end
for k=2
f1(k)=f1(k-1)+[0 0 0 0 2 0]'; ; %[N]
f2(k)=f2(k-1)+[0 0 5 0 0 0]';
f3(k)=f3(k-1)+[0 4 0 0 0 0]';
lump.f(k)=[f1(k) f2(k) f3(k)];
end
end
how can i do this?
thank you
  1 commentaire
KSSV
KSSV le 17 Jan 2022
Can you be more lear on what you are expecting?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Matrix Indexing 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