simobjp.m

来自「matlab的遗传算法的一个工具箱」· M 代码 · 共 22 行

M
22
字号
% SIMOBJP.M   (Plot SIMulation results of OBJective function)%% This function takes the name of a simulation objective% function and the matrix of the best individuals and % plots the states of the system over time for the % last best individual.% Author:     Hartmut Pohlheim% History:    25.03.94     file createdfunction [val, t, x] = simobjp(OBJ_F, IndAll);BestInd1=IndAll(size(IndAll,1),:);[val t x] = feval(OBJ_F, BestInd1);set(gcf,'Name',feval(OBJ_F,[],2));plot(t, x);% End of function

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?