outer.m : a generalized outer function

Does equivalent of X*Y' , replacing "*" with arbitrary func. Strings allowed
297 Downloads
Updated 6 Jul 2012

View License

This is similar to 29428 or 8370, but more flexible and (I hope) intuitive. Calculate the equivalent of the vector outer product, using any function which acts on two inputs (i.e. two vectors, or one vector and one single value, etc.). Character/string functions are accepted as well as purely numeric functions.

Cite As

Carl Witthoft (2024). outer.m : a generalized outer function (https://www.mathworks.com/matlabcentral/fileexchange/37409-outer-m-a-generalized-outer-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers
Acknowledgements

Inspired: evTestK

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0