필터 지우기
필터 지우기

Symbolic vector start name with c0 instead of c1

조회 수: 1 (최근 30일)
Boris Chan
Boris Chan 2021년 12월 3일
답변: Walter Roberson 2021년 12월 3일
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