How can i obtain strucutre like this format, please ?

3 vues (au cours des 30 derniers jours)
sam mohel
sam mohel le 10 Avr 2022
Commenté : Image Analyst le 10 Avr 2022
i'm new to matlab and was working on clustering using this link
if some can help me in this lines , how can i obtain like this structure as i have file of two columns for x,y and another file with three columns for the distance between them ..
fileName = 'demo.mat';
f=load(fileName); % NOTE that the 'demoData.mat' file includes a matrix <X> with *NE* elements and *2* dim,
% NE is the number of elements of a data set
the mat file in the example code contains like this
{'__header__': b'MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Sat Nov 07 03:04:35 2015', '__version__': '1.0', '__globals__': [], 'X': array([[ 1.40325035, 1.22212839],
[ 2.37541376, 1.90058719],
[-0.69413515, 1.81762962],
...,
[-1.31957801, -1.155144 ],
[-1.38098383, -1.43077273],
[-1.21105289, -1.61001161]])}
  1 commentaire
Image Analyst
Image Analyst le 10 Avr 2022
You forgot to attach 'demo.mat'. I'll check back later for it.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by