ga_text.m
来自「用MATLAB实现遗传算法中的好多问题」· M 代码 · 共 21 行
M
21 行
function [handle]=text(w1,x,y,xw,yh,s,fc,bc)
%
% Useage:
% [handle]=text(w1,x,y,xw,yh,s,fc,bc)
%
% Prints a text object with the following attributes
%
% window : w1
% position: x,y
% size : xw,yh
% text : s
% fg col : fc
% bg col : bc
%
handle=uicontrol(w1,...
'style','text',...
'position',[x y xw yh],...
'string',num2str(s),...
'foregroundcolor',fc,...
'backgroundcolor',bc);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?