B =
Why do I get conj(L)
古いコメントを表示
When I multiply 2 4X4 matrices one numeric the other alpha numeric say with L1,L2,L3, L4 why do I get the answer with cconj(L1,L2,L3,L4)? Also why do I get answers in fractions not decimal?
採用された回答
その他の回答 (1 件)
Walter Roberson
2025 年 3 月 1 日
編集済み: Walter Roberson
2025 年 3 月 1 日
You probably used the ' operator on the symbolic vector. For example,
syms L [1 4]
A = [2 3; 4 5]/7
B = [L1 L2; L3 L4]
C = A*B
C = A*B'
whereas you might have wanted
D = A*B.'
To get the answer in decimal, either use
vpa(D, 10)
or else use
sympref('FloatingPointOutput', true)
D
カテゴリ
ヘルプ センター および File Exchange で Conversion Between Symbolic and Numeric についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


