Create a matrix with letters
Mostra commenti meno recenti
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 Commenti
James Tursa
il 6 Apr 2018
Do you currently have variables with the m, x, y, z data in them?
Lee Cohen
il 6 Apr 2018
James Tursa
il 6 Apr 2018
Modificato: James Tursa
il 6 Apr 2018
Are you trying to form a symbolic matrix? How is this going to be used downstream in your code?
Lee Cohen
il 6 Apr 2018
Modificato: James Tursa
il 6 Apr 2018
Risposte (1)
James Tursa
il 6 Apr 2018
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])]
1 Commento
Lee Cohen
il 7 Apr 2018
Categorie
Scopri di più su Number Theory in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!