No BSD License  

Highlights from
csxfun

1.0

1.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 828 Bytes File ID: #19371

csxfun

by Dan Cohn

 

29 Mar 2008 (Updated 31 Mar 2008)

bsxfun for cell arrays

| Watch this File

File Information
Description

Apply element-by-element binary operation to two cell arrays with singleton expansion enabled (very similiar to MATLAB builtin bsxfun). Additionally, csxfun can be called with the optional parameters 'UniformOutput' and/or 'ErrorHandler' (see cellfun documentation).

Examples:

A = csxfun(@plus,{1,2,3},{3,2,1})
A =
    4 4 4

B = csxfun(@plus,{1,2,3},{3,2,1},'UniformOutput',false)
B =
   [4] [4] [4]

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
24 Mar 2010 Stuart Yarrow

This appears to be a wrapper around cellfun with zero functionality?

Please login to add a comment or rating.
Updates
31 Mar 2008

Improved function help and code readability

Tag Activity for this File
Tag Applied By Date/Time
structures Dan Cohn 22 Oct 2008 09:55:41
cell arrays Dan Cohn 22 Oct 2008 09:55:41
cell Dan Cohn 22 Oct 2008 09:55:41
bsxfun Dan Cohn 22 Oct 2008 09:55:41
cellfun Dan Cohn 22 Oct 2008 09:55:41
function handle Dan Cohn 22 Oct 2008 09:55:41
binary operation Dan Cohn 22 Oct 2008 09:55:41
vectorizatio Dan Cohn 22 Oct 2008 09:55:41

Contact us at files@mathworks.com