How can I create such lists of variables:
list1={sus1[t],sus2[t],sus3[t],...,sus99[t]};
list2={inf1[t],inf2[t],inf3[t],...,inf99[t]};
Consecutive Integers should be placed in between sus and [t] and between inf and [t] as in the above examples.
Earlier, @kglr did the following:
list = {das[t], das[t], das[t]};
Replace[list, {h_[a__] :> Symbol[SymbolName[h] <> "0"][a],
s_ :> Symbol[SymbolName[s] <> "0"]}, {1}]
Which replaces 0 only.
What I have in mind is a format like:
fn[sus_, n_, t_]:= something
and
fn[inf, 3, t]
should generate
{inf1[t], inf2[t], inf3[t]}

Table[ToExpression["das"<>ToString[k]][t], {k, 99}]-- You can useSymbolinstead ofToExpression. – Michael E2 Dec 06 '20 at 18:12Associationor lists orRules to store data together with their metadata (see e.g. https://mathematica.stackexchange.com/a/235579/27951). – MarcoB Dec 06 '20 at 21:33AssociationandRules. – Tugrul Temel Dec 06 '20 at 22:50