当前位置:首页 » 分析预测 » 股票聚类分析Matlab
扩展阅读
市同兴达电子股票代码 2024-09-22 19:25:48

股票聚类分析Matlab

发布时间: 2021-06-09 15:03:33

❶ 我有150组数据,想用matlab做聚类分析,程序怎么写

建议你使用SPSS软件,因为那个做聚类分析是很简单的,而且是它最主要的功能之一。

❷ 用matlab给一组数据做一个简单的聚类分析,求程序

有内置函数的

❸ 用matlab数据分析建模和聚类分析两种方法怎么选

直接调kmeans函数。 k = 3;%类别数 idx = kmeans(X, k);%idx就是每个样本点的标号。

❹ 聚类分析和数据预处理用matlab怎么作,急!

需要很多编程处理,这里写不清楚的
你也可以去statconsult看看的,网络输入statconsult就可以了

❺ 如何用matlab进行聚类分析

要做什么聚类,层次聚类?还是,我应该可以帮忙!

❻ 求matlab聚类分析的代码

%%k均值聚类的示例代码:

X = [randn(100,2)+ones(100,2);...
randn(100,2)-ones(100,2)];
opts = statset('Display','final');

[idx,ctrs] = kmeans(X,2,...
'Distance','city',...
'Replicates',5,...
'Options',opts);
%5 iterations, total sum of distances = 284.671
%4 iterations, total sum of distances = 284.671
%4 iterations, total sum of distances = 284.671
%3 iterations, total sum of distances = 284.671
%3 iterations, total sum of distances = 284.671

plot(X(idx==1,1),X(idx==1,2),'r.','MarkerSize',12)
hold on
plot(X(idx==2,1),X(idx==2,2),'b.','MarkerSize',12)
plot(ctrs(:,1),ctrs(:,2),'kx',...
'MarkerSize',12,'LineWidth',2)
plot(ctrs(:,1),ctrs(:,2),'ko',...
'MarkerSize',12,'LineWidth',2)
legend('Cluster 1','Cluster 2','Centroids',...
'Location','NW')

你可以help下cluster,matlab里面还自带很多这种例子

❼ 我想用MATLAB实现系统聚类分析

聚类分析最重要的是什么?(你啥都不说,怎么解决你的问题?

举个例子:如果你是淘宝网店老板,我现在告诉你我想定做个生日礼物,但其它什么都不告诉你,你能做么?
PS:图我看见了,没啥用。

❽ 聚类分析方法的matlab代码和具体的调试过程其中一种就行,加急~~~~

x2=zscore(x');
y2=pdist(x2');
z2=linkage(y2);
c2=cophenet(z2,y2);
t=cluster(z2,6);
h=dendrogram(z2);
这些是matlab里面自带的函数,只要把你要分类的数据赋值给x就行了。

❾ 如何用MATLAB对股票数据做聚类分析

直接调kmeans函数。
k = 3;%类别数
idx = kmeans(X, k);%idx就是每个样本点的标号。