How can i obtain strucutre like this format, please ?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!