我正在使用ANFIS为我的工作,并学会使用ANFIS使用MATLAB。然而,我正在以图表的形式获得最终的FIS输出。我无法以数组的形式获得输出。
你能告诉我如何以数组的形式得到最终的输出吗?
发布于 2012-07-03 07:29:30
http://www.mathworks.com/help/toolbox/fuzzy/fp715dup12.html#FP43334:
The command anfis takes at least two and at most six input arguments. The general format is
[fismat1,trnError,ss,fismat2,chkError] = ...
anfis(trnData,fismat,trnOpt,dispOpt,chkData,method);
where trnOpt (training options), dispOpt (display options), chkData (checking data), and method (training method), are optional.
然后,您可以例如绘制输出:
figure(3)
subplot(2,2,1)
plotmf(fismat2, 'input', 1)
subplot(2,2,2)
plotmf(fismat2, 'input', 2)
subplot(2,2,3)
plotmf(fismat2, 'input', 3)
subplot(2,2,4)
plotmf(fismat2, 'input', 4)
下图显示了结果的一个示例:
https://stackoverflow.com/questions/11296320
复制相似问题