How to define variable that itself contains one or more variables ?
이전 댓글 표시
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
James Tursa
2014년 7월 7일
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
2014년 7월 7일
Is a variable "in" a variable a cell array???
Alish
2014년 7월 9일
Alish
2014년 7월 9일
dpb
2014년 7월 9일
See
doc function_handle % (@)
for perhaps a way to proceed.
답변 (1개)
Jos (10584)
2014년 7월 9일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!