【问题标题】:How to generate ANFIS output in MATLAB?如何在 MATLAB 中生成 ANFIS 输出?
【发布时间】:2012-07-02 15:07:24
【问题描述】:

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

能否请您帮我了解如何以数组形式获取最终输出?

【问题讨论】:

    标签: matlab fuzzy-logic


    【解决方案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)
    

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

    【讨论】:

      猜你喜欢
      • 2011-05-28
      • 1970-01-01
      • 1970-01-01
      • 2013-03-22
      • 2013-03-20
      • 1970-01-01
      • 2017-09-05
      • 2016-04-06
      • 2010-10-14
      相关资源
      最近更新 更多