matlab中的 isomap算法

来源:百度知道 编辑:UC知道 时间:2024/07/02 15:05:05
现在程序都编好了,就是有点小问题:
alpha = 0.5;
K = 10;
load data.mat
D=distance(data, labels, alpha);
options.dims = [2];
[Y, R, E] = IsomapII(D, 'k', K, options);

运行后会出现如下问题:
1:
??? At compilation "data" was determined to be variable. As a variable,
it is uninitialized, but function "data" is now in context.
In MATLAB 7, you cannot use the same name in a single function as
both a function and a variable.

Error in ==> sIsomap at 15
D=distance(data, labels, alpha);

2:
还有个问题:labels如何定义?

data即是变量名称又是函数名称,但是作为变量没有初始化,D=distance(data, labels, alpha); 这里的操作数data跟dat文件名称重复了,不知道是不是这个问题.labels是什么类型的变量,你给个初始值不就好了么.

想学习isomap算法,能不能介绍什么书给我看看啊,谢谢,