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
plotmf(yourMemFis, 'input', 1)
exportgraphics(gcf, 'inputMemFunction.png')
close(gcf)
plotmf(yourMemFis, 'output', 1)
exportgraphics(gcf, 'outputMemFunction.png')
close(gcf)
Best Answer