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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by