Filter löschen
Filter löschen

Symbolic vector start name with c0 instead of c1

1 Ansicht (letzte 30 Tage)
Boris Chan
Boris Chan am 3 Dez. 2021
Beantwortet: Walter Roberson am 3 Dez. 2021
I know that the following
syms c[10 1]
will create vector with symbolic functions from c1 -> c10 but is there anyway I can make it so it starts at c0 instead?
  1 Kommentar
Walter Roberson
Walter Roberson am 3 Dez. 2021
That will create symbolic variables that are not functions. Do you need functions? Functions are more work.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 3 Dez. 2021
If you need a vector of variables then
c = sym("c" + (0:9))
c = 

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by