Matlab-repmat
来源:互联网 发布:java按空格分割字符串 编辑:程序博客网 时间:2024/06/01 08:25
转自:http://blog.csdn.net/anqier1009/article/details/5214978
B = repmat(A,m,n)
B = repmat(A,[m n])
B = repmat(A,[m n p...])
这是一个处理大矩阵且内容有重复时使用,其功能是以A的内容堆叠在(MxN)的矩阵B中,B矩阵的大小由MxN及A矩阵的内容决定,如果A是一个3x4x5的矩阵,有B = repmat(A,2,3)则最后的矩阵是6x12x5
例如:
>>B=repmat( [1 2;3 4],2,3)
B =
1 2 1 2 1 2
3 4 3 4 3 4
1 2 1 2 1 2
3 4 3 4 3 4
其结果变为4X6。A也可以置放文字串,如:
>>C=repmat(' Long live the king!', 2,2)
C =
Long live the king! Long live the king!
Long live the king! Long live the king!
也可置放其他的:
>> D=repmat(NaN,2,5)
D =
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
阅读全文
0 0
- Matlab ---repmat
- Matlab-repmat
- matlab中的repmat函数
- matlab repmat 重复数据
- Matlab 函数: repmat
- matlab中的repmat函数
- matlab之repmat
- MATLAB中的repmat函数
- matlab repmat函数
- bsxfun vs. repmat in Matlab
- matlab矩阵复制函数:repmat
- MATLAB中repmat的运用
- matlab之bsxfun与repmat
- MATLAB repmat函数的使用
- MATLAB reshape,repmat简单示例
- matlab矩阵复制函数:【repmat】
- numpy tile 和 matlab repmat
- repmat
- 手机误删联系人恢复方法 快速找回丢失数据
- Java读取多层级xml文件
- LeetCode 144,94,145,102,103 Binary Tree Traversal 二叉树遍历 Python Solution
- 数据库 EXISTS的用法
- kangle2.0做完网站访问在线文件管理时提示没有权限
- Matlab-repmat
- FFMPEG视音频编解码零基础学习方法
- 关于static关键字的详解
- ini格式相关
- 二叉树专题-验证二叉查找树
- Python中的split()函数的用法
- 20171009-20171015C#WPF工作学习周总结
- [LeetCode]28. Implement strStr()
- 2017 新披露 :平台都用贝叶斯算法