Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在matlab中将数据集数组作为数据集处理,就像其他程序一样(spss、r、stata)_Matlab_Dataset_Statistics - Fatal编程技术网

在matlab中将数据集数组作为数据集处理,就像其他程序一样(spss、r、stata)

在matlab中将数据集数组作为数据集处理,就像其他程序一样(spss、r、stata),matlab,dataset,statistics,Matlab,Dataset,Statistics,我有一个表,有80个变量,512个观察值 所有值都是数字 我想使用我的表(类:dataset)作为dataset进行因子分析 现在,我仍在使用这个表达式来实现这一点 factoran(double(table),m) 我想使用这样一个带有datasetfun的表达式来保存表信息 datasetfun(@(x) factoran(x,m), table, 'datasetoutput', true) 但它不起作用 Error using factoran (line 133) X must h

我有一个表,有80个变量,512个观察值

所有值都是数字

我想使用我的表(类:dataset)作为dataset进行因子分析

现在,我仍在使用这个表达式来实现这一点

factoran(double(table),m)
我想使用这样一个带有datasetfun的表达式来保存表信息

datasetfun(@(x) factoran(x,m), table, 'datasetoutput', true)
但它不起作用

Error using factoran (line 133)
X must have more than one row (observation) and more than one column (variable).

Error in @(x)factoran(x,3)


Error in dataset/datasetfun (line 101)
怎么办

b=datasetfun(fun,A)
fun
指定的函数应用于数据集数组
A
每个变量(每列)。由于
factoran
需要多个列来执行其操作,因此它不能与
datasetfun
一起使用