如何在MATLAB中生成ANFIS输出?

时间:2012-07-02 15:07:25

标签: matlab fuzzy-logic

我正在使用ANFIS进行工作,并使用MATLAB学习使用ANFIS。但是,我在图表中获得了最终的FIS输出。我无法以数组形式获得输出。

请问如何以阵列形式获得最终输出?

1 个答案:

答案 0 :(得分:1)

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)

以下图表显示了结果示例:

enter image description here