Save the Figures Getting From ANFIS designer

조회 수: 6 (최근 30일)
Sibasish Dhibar
Sibasish Dhibar 2020년 12월 28일
댓글: Subhadeep Koley 2021년 1월 4일
how to save the Memebership function figure in Matlab??Is there another option to save the figure?Because after plotting the memebership function, there is no option for save figure.

채택된 답변

Subhadeep Koley
Subhadeep Koley 2020년 12월 28일
In the Membership Function Editor, Click on File > Export > To Workspace. Provide the workspace variable name (e.g. yourMemFis) and click on OK.
Then in the command window, execute the below code
% Plot membership functions for the first input variable
plotmf(yourMemFis, 'input', 1)
% Export the plot in PNG format
exportgraphics(gcf, 'inputMemFunction.png')
% Close current figure
close(gcf)
% Plot membership functions for the first output variable
plotmf(yourMemFis, 'output', 1)
% Export the plot in PNG format
exportgraphics(gcf, 'outputMemFunction.png')
% Close current figure
close(gcf)
% so on..
  댓글 수: 2
Sibasish Dhibar
Sibasish Dhibar 2020년 12월 31일
@ Subhadeep Koley
I have already save the FIS file in Workspace after that I got two input membership function plot but the "output" result is not showing. When I using your above comment "plotmf(yourMemFis, 'output', 1)" then MATLAB shows that "No plots for Sugeno Output MFs". How to solve this problem?
Subhadeep Koley
Subhadeep Koley 2021년 1월 4일
@Sibasish Dhibar as per the documentation, plotmf(__) does not support plotting output membership functions of a Sugeno fuzzy systems. Instead you can plot the output surface of the Sugeno fuzzy system like below
figure
gensurf(yourMemFis)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by