How can i obtain strucutre like this format, please ?

3 ビュー (過去 30 日間)
sam mohel
sam mohel 2022 年 4 月 10 日
コメント済み: Image Analyst 2022 年 4 月 10 日
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 件のコメント
Image Analyst
Image Analyst 2022 年 4 月 10 日
You forgot to attach 'demo.mat'. I'll check back later for it.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by