No BSD License  

Highlights from
padadd

4.5

4.5 | 2 ratings Rate this file 26 Downloads (last 30 days) File Size: 2.29 KB File ID: #209

padadd

by Dave Johnson

 

08 Feb 2000

This is a function that concatenates data column arrays of possibly dissimilar sizes.

| Watch this File

File Information
Description

This is a function that concatenates data column arrays of possibly dissimilar sizes. The undefined portions are padded with NaNs to make a viable rectangular matrix array. The main
idea is that data in 'x' is added to the data in 'A'

A third argument can be included to specify a column index in 'A' designating where to begin overwriting 'A' with 'x' and/or the appending of 'x' to 'A'.

One possible use is to plot the output vectors of many simulation runs which have varying lengths with one simple plot statement. This is usually better for managing large sets of related raw data.

Acknowledgements
This submission has inspired the following:
PADCAT
MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
31 May 2002 BENTE GABRIELA  
25 Sep 2003 Rasmus Anthin

Very nifty tool! However, I'd like to see it extended to handle multidimensional matrices.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
matrices Dave Johnson 22 Oct 2008 06:33:59
tools Dave Johnson 22 Oct 2008 06:33:59
data arrays Dave Johnson 22 Oct 2008 06:33:59
concatenate Dave Johnson 22 Oct 2008 06:33:59
size Dave Johnson 22 Oct 2008 06:33:59
matrix manipulation Dave Johnson 22 Oct 2008 06:33:59

Contact us at files@mathworks.com