Symbolic vector start name with c0 instead of c1

2 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2021-12-3
That will create symbolic variables that are not functions. Do you need functions? Functions are more work.

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by