필터 지우기
필터 지우기

How can I define an array of symbolic functions?

조회 수: 1 (최근 30일)
Arpit Agarwal
Arpit Agarwal 2014년 2월 18일
댓글: Arpit Agarwal 2014년 2월 19일
I want to make an array a1(t) a2(t)... an(t).
syms a(t)
creates a symbolic parameter 't' and 'a' which is an unknown function of 't'. I want an array of just this. How do I do that? I want to use this array to solve a system of ODEs using dsolve.

답변 (1개)

Carlos
Carlos 2014년 2월 18일
편집: Carlos 2014년 2월 18일
Are you looking for something like this?
>> syms t;
>> a=zeros(3,1);
>> a=sym(a);
>> a(1)=t;
>> a(2)=t+1;
>> a(3)=t+2;
  댓글 수: 1
Arpit Agarwal
Arpit Agarwal 2014년 2월 19일
Actually I want a vector of undefined 'symfun' elements. i.e. each element a(i)=a(i)(t)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by