plotmat.m

来自「matlab算法集 matlab算法集」· M 代码 · 共 24 行

M
24
字号
function graphmat (Z,caption,xaxis,yaxis,zaxis)
%----------------------------------------------------------------
% Usage:       plotmat (Z,caption,xaxis,yaxis,zaxis)
%
% Description: Plot a matrix as a surface
%
% Inputs:      Z       = m by n matrix containing dependent 
%                        variables
%              caption = string containing graph title
%              xaxis   = string containing x-axis label
%              yaxis   = string containing y-axis label
%              zaxis   = string containing z-axis label
%----------------------------------------------------------------
   figure
   box off
   mesh (real(Z'))
   title (caption)
   xlabel (xaxis)
   ylabel (yaxis)
   zlabel (zaxis)
   wait
%----------------------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?