Create a matrix with letters
显示 更早的评论
I would like to know how to create the following matrix:

When there is a list of points with weights (xi, yi, zi are coordinates and mi are weights) I just don't know how to create it with those letters.
4 个评论
James Tursa
2018-4-6
Do you currently have variables with the m, x, y, z data in them?
Lee Cohen
2018-4-6
James Tursa
2018-4-6
编辑:James Tursa
2018-4-6
Are you trying to form a symbolic matrix? How is this going to be used downstream in your code?
Lee Cohen
2018-4-6
编辑:James Tursa
2018-4-6
回答(1 个)
James Tursa
2018-4-6
Is this what you want:
A = [sym('m%d',[n 1]) sym('x%d',[n 1]) sym('y%d',[n 1]) sym('z%d',[n 1])]
类别
在 帮助中心 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!