How to define variable that itself contains one or more variables ?
Mostra commenti meno recenti
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 Commenti
James Tursa
il 7 Lug 2014
Can you give more detail? What are the dimensions of d, dq, q, m? How do you want those combined to form b? Maybe give an example for one specific element of b.
dpb
il 7 Lug 2014
Is a variable "in" a variable a cell array???
Alish
il 9 Lug 2014
Alish
il 9 Lug 2014
dpb
il 9 Lug 2014
See
doc function_handle % (@)
for perhaps a way to proceed.
Risposte (1)
Jos (10584)
il 9 Lug 2014
0 voti
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.
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!