About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconnumSubplots - neatly arrange subplots (Scripts) Publisher's description

Sometimes a graphing function will not know in advance how many sub-plots are to be created

Sometimes a graphing function will not know in advance how many sub-plots are to be created. In this case hard-coding the number of rows and columns for the subplot command may not be possible. This function produces reasonable values for the row and column inputs to subplot given the number of desired sub-plots.

function [p,n]=numSubplots(n)

n - the desired number of subplots.

p - a vector length 2 defining the number of rows and number of columns required to show n plots.
[ n - the current number of subplots. This output is used only by this function for a recursive call.]

Example: neatly lay out 13 sub-plots
>> p=numSubplots(13)
p =
3 5
for i=1:13; subplot(p(1),p(2),i), pcolor(rand(10)), end

System Requirements:

MATLAB 7.8 (R2009a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

numSubplots - neatly arrange subplots (Scripts) Tags:

Click on a tag to find related softwares

Is numSubplots - neatly arrange subplots (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.