how to define a unknown matrix
조회 수: 5 (최근 30일)
이전 댓글 표시
i have 10 unknowns
for example d1_1 d1_2 d2_1 d2_2 d3_1 d3_2 d4_1 d4_2 d5_1 d5_2
and i would like to place them into a matrix d which
d ( : , : , 1 ) = [ d1_1 ; d1_2 ] ;
d ( : , ; , 1 ) = [ d2_1 ; d2_2 ];
. . . . . . . . . . .
is there any simpler way for me to define this d matrix?
thank you!
댓글 수: 0
채택된 답변
Walter Roberson
2012년 12월 5일
If you have a relatively new version of the Symbolic Toolbox (R2011b or later I think it is),
d = sym('d', [5 2])
댓글 수: 2
Walter Roberson
2012년 12월 5일
No. Symbolic Toolbox (or equivalent) is the only way to express unknowns.
Or is your question that you have 10 known values and you want to place them in an array?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!