【发布时间】:2012-07-02 15:07:24
【问题描述】:
我在工作中使用 ANFIS,并通过 MATLAB 学习了使用 ANFIS。但是,我在图表中得到了最终的 FIS 输出。我无法以数组形式获得输出。
能否请您帮我了解如何以数组形式获取最终输出?
【问题讨论】:
标签: matlab fuzzy-logic
我在工作中使用 ANFIS,并通过 MATLAB 学习了使用 ANFIS。但是,我在图表中得到了最终的 FIS 输出。我无法以数组形式获得输出。
能否请您帮我了解如何以数组形式获取最终输出?
【问题讨论】:
标签: matlab fuzzy-logic
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)
以下图表显示了结果示例:
【讨论】: