📄 quickplt.mht
字号:
From: <Saved by Windows Internet Explorer 7>
Subject:
Date: Tue, 12 May 2009 09:44:42 -0700
MIME-Version: 1.0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.mece.ualberta.ca/Courses/mec390/390code/quickplt.m
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.6000.16825" name=3DGENERATOR></HEAD>
<BODY><PRE>function quickplt(x,y,xtext,ytext,maintitle,gridon)
%
% QuickPlt function - plots a single set of x,y data with optional =
titles and grid
% USAGE:
% quickplt(x,y,xtext,ytext,maintitle,gridon)
% REQUIRED INPUT as VECTORS:
% x,y - data to be plotted
% OPTIONAL INPUT as STRINGS:
% xtext,ytext - x axis, yaxis titles
% maintitle - main title for graph
% gridon - any string will turn on the grid
% NOTE: optional elements are interpreted in order from left to right.
% Any number of arguments from 2 to 6 are allowed.
plot(x,y) % first the plot, then the option...
if nargin =3D=3D 2, return, end
if nargin > 2, xlabel(xtext); end
if nargin > 3, ylabel(ytext); end
if nargin > 4, title(maintitle); end
if nargin > 5, grid; end
</PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -