How can I define an array of symbolic functions?

1 Ansicht (letzte 30 Tage)
Arpit Agarwal
Arpit Agarwal am 18 Feb. 2014
Kommentiert: Arpit Agarwal am 19 Feb. 2014
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.

Antworten (1)

Carlos
Carlos am 18 Feb. 2014
Bearbeitet: Carlos am 18 Feb. 2014
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 Kommentar
Arpit Agarwal
Arpit Agarwal am 19 Feb. 2014
Actually I want a vector of undefined 'symfun' elements. i.e. each element a(i)=a(i)(t)

Melden Sie sich an, um zu kommentieren.

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by