array of symbolic variables which are function of time
Show older comments
p = sym('p', [m 1]);
the above code gives me an array of symbolic variables, where m is the size of the matrix. However i want to create an array of symbolic variables which are function of time i.e. p1(t),p2(t),.... .
Accepted Answer
More Answers (2)
Juraj Lieskovský
on 4 Mar 2021
Edited: Juraj Lieskovský
on 4 Mar 2021
Simple solution (using R2020b)
syms t
syms p(t) [m,1]
KSSV
on 26 Oct 2017
syms p1(t) p2(t) p3(t)
p = [p1 p2 p3]
1 Comment
Jai Tushar
on 26 Oct 2017
Edited: Jai Tushar
on 26 Oct 2017
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!