graphmat.m
来自「matlab算法集 matlab算法集」· M 代码 · 共 23 行
M
23 行
function graphmat (Y,caption,xaxis,yaxis)
%----------------------------------------------------------------
% Usage: graphmat (Y,caption,xaxis,yaxis)
%
% Description: Graph the columns of a matrix
%
% Inputs: Y = m by n matrix containing dependent
% variables
% caption = string containing graph title
% xaxis = string containing x-axis label
% yaxis = string containing y-axis label
%----------------------------------------------------------------
figure
zoom on
box on
plot (real(Y))
title (caption)
xlabel (xaxis)
ylabel (yaxis)
wait
%----------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?