simobjp.m
来自「matlab 遗传算法工具箱 对学习遗传算法很有帮助 别再有重复的」· M 代码 · 共 20 行
M
20 行
% 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 created
function [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 + -
显示快捷键?