subplotrc

版本 1.0.0.0 (355 字节) 作者: Andrew Diamond
extension of subplot, subplotrc(m,n,r,c) put suplot in row r, column c of figure.
1.0K 次下载
更新时间 2006/6/2

无许可证

A totally trivial function that I keep on rewriting in line over and over again. Must be somewhere I'm missing or I'm missing something. Here it is in it's "glorious" entirety (-;
---------
function h=subplotrc(varargin)
% function h=subplotrc(varargin) - extension of subplot
% subplotrc(m,n,r,c) put suplot in row r, column c of figure;
% all other forms passed through to subplot without alteration
if(length(varargin)==4 && all(cellfun(@isnumeric,varargin)))
p=sub2ind([varargin{2},varargin{1}],varargin{4},varargin{3});
h=subplot(varargin{1},varargin{2},p);
else
h=subplot(varargin{:})
end
if(nargout == 0)
clear h;
end

引用格式

Andrew Diamond (2024). subplotrc (https://www.mathworks.com/matlabcentral/fileexchange/11272-subplotrc), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Subplots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0