Matlab注释规范与自定义

Matlab注释规范

MATLAB脚本注释规范

%% Title: Interval estimation LTI system
% Author: Zhang San(xxx@163.com)
% Date  : 20xx-xx-xx
%% Reference
% [1]  Alamo T, Bravo J M, Camacho E F. Guaranteed state estimation by zonotopes[J]. Automatica, 2005, 41(6): 1035-1043.
% [2] Combastel C. Zonotopes and Kalman observers: Gain optimality under distinct uncertainty paradigms and robust convergence[J]. Automatica, 2015, 55: 265-273.
% 

%% Introduction
% In the field of satellite-ground laser communication, the ground station needs to know the orbit of the satellite to perform acquisition tracking and pointing process to point the laser to the satellite precisely. This script gives a simulation of ** algorithm using the *** model as an example. In this file will achieve the following functions:
%
% # Establishment trajectory
% # Get the trajectory data
% # Visualization
% # Obtain the observable interval
Ts = 0.01;
%% Step 1:

%% Step 2:

%% Step 3:

%% Figure
figure,
plot(rand(1,100),'r');

MATLAB函数注释规范

function varargout = boundingbox(F,ops,x)
%BOUNDINGBOX Computes bounding box of a constraint
%
% If only one output is requested, only the symbolic model is returned
%  B = boundingbox(F)
%
% If three outputs are requested, numerical values are returned too
%  [B,L,U] = boundingbox(F)
%
% A second argument can be used to specificy solver settings
%  B = boundingbox(F,sdpsettings('solver','cplex'))
%
% A third argument can (should!) be used to obtain a bounding box in a
% particular set of variables, i.e. the bounding box of a projection.
% Unless you specify which variables you are computing the bounding box
% w.r.t, it will be very hard for you to understand which variables the
% values in L and U relate to
%  [B,L,U] = boundingbox(F,[],x)
% B will now be the box [L <= x <= U] (infinite bounds not included)

if nargin < 2
    ops = sdpsettings('verbose',0);
end

if nargin < 3
    [B,L,U] = boundingbox(lmi(F),ops);
else
    [B,L,U] = boundingbox(lmi(F),ops,x);
end
switch nargout
    case 0
        B
    case 1
        varargout{1} = B;
    case 2
        varargout{1} = B;
        varargout{2} = L;
    case 3
        varargout{1} = B;
        varargout{2} = L;
        varargout{3} = U;
    otherwise
end

MATLAB绘图注释规范

%% Figure 1: init state diagram
	% Element 1: 绘制粗跟踪探测器范围
	
	% Element 2: 绘制不确定域大小
	
	% 图区属性
	
	% 图例与标签属性

Matlab自定义字体

字体下载,如
http://dl2.downxy.com/down/YaHeiConsolas_downcc.zip
复制到MATLAB安装目录中的字体文件夹,如:

C:\Program Files\MATLAB\R2019b\sys\java\jre\win64\jre\lib\fonts

将字体文件放入该文件夹后,重启MATLAB,进入预设-字体,即可设置成所需字体

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值