How can I create a quadratic matrix with variables?
3 ビュー (過去 30 日間)
古いコメントを表示
I need to create the matrix of
such that i get the matrix
and so on? I need all the elements of the nxn matrix to be variables. I tried with :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1057485/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1057490/image.png)
syms q1dot q2dot q3dot q4dot q5dot;
qdot= [q1dot q2dot q3dot q4dot q5dot].'*[q1dot q2dot q3dot q4dot q5dot];
but it doesn't seem to work. Many thanks.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Numbers and Precision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!