How to define variable that itself contains one or more variables ?
4 views (last 30 days)
Show older comments
How can I find b(ijk) for different values of i,j,k by just entering values of i,j,k.
b(ijk) = d/dq(k) [m(ij)] q(1), q(2), q(3).......are variables
How can we define variable in a variable ( q(k) , m(ij) ) ?
5 Comments
Answers (1)
Jos (10584)
on 9 Jul 2014
You do not want to store things like Q1 = .. Q2 = .. .. Q98293 = .. in gazillion different, but related, variables
You want a single array Q, which can be an array of doubles, cells, structures.
0 Comments
See Also
Categories
Find more on Numeric Types 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!