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.
185 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 (2024). 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 .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Scope Variables and Generate Names in Help Center and MATLAB Answers
Tags Add Tags

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