File Exchange

image thumbnail

Use mop instead of repmat on the command line for convenience.

version 1.0.0.0 (1.68 KB) by Andrew
On the command line, repmat gets tedious. mop fixes that.

0 Downloads

Updated 22 Mar 2013

View License

On the command line, repmat gets tedious. mop fixes that. Don't use it in a function, though, because it will slow it down. It's just meant for command-line convenience.

Example. A = size(m, n) and b = size(m, 1), size(1, m), size(n, 1), or size(1, n). Call
mop(A, '+', b)
mop(b, '+', A)
to transpose b as necessary and repmat b to match A's size.

Cite As

Andrew (2021). Use mop instead of repmat on the command line for convenience. (https://www.mathworks.com/matlabcentral/fileexchange/40908-use-mop-instead-of-repmat-on-the-command-line-for-convenience), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!