subplotrc

extension of subplot, subplotrc(m,n,r,c) put suplot in row r, column c of figure.
1K Descargas
Actualizado 2 jun 2006

Sin licencia

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

Citar como

Andrew Diamond (2025). subplotrc (https://www.mathworks.com/matlabcentral/fileexchange/11272-subplotrc), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R14SP3
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0