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!