Info
This question is closed. Reopen it to edit or answer.
distribute list to Matrices
1 view (last 30 days)
Show older comments
Hi,
I have a list that shows distances of the points. It is like
Point A, Point B 5.2
Point A, Point C 4.3
Point A, Point D 2.1
Point B, Point C 7.6
Point B, Point D 3.3
Point C, Point D 1.2
But i want to recreate a matrices with that list like
Point A Point B Point C Point D
Point A 0 5.2 4.3 2.1
Point B 5.2 0 7.6 3.3
Point C 4.3 7.6 0 1.2
Point D 2.1 3.3 1.2 0
Is it possible to do it in Matlab
3 Comments
Azzi Abdelmalek
on 15 Oct 2013
Edited: Azzi Abdelmalek
on 15 Oct 2013
Is it like this?
A={'Point A,' 'Point B' '5.2'; 'Point A,' 'Point C' '4.3'}
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!