eq.m
来自「一些用matlab编写的经典遗传算法算例。可以用于解决许多优化问题」· M 代码 · 共 7 行
M
7 行
function t = eq(g1,g2)
% EQ - Compares two design variables. Remember when comparing
% design variables that it is only their name that decides if they
% are euqal or not. i.e. they might have different values. The
% function returns true if the design variables are equal.
t=strcmp(g1.name,g2.name);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?