matlab repmat函数
来源:互联网 发布:nginx https转发http 编辑:程序博客网 时间:2024/06/07 00:48
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支mean函数repmat函数
- Matlab ---repmat
- Matlab-repmat
- matlab中repmat函数的用法
- matlab中repmat函数的用法
- matlab中repmat函数的用法
- matlab中repmat函数的用法
- Matlab size() & repmat() 函数的使用
- matlab中repmat函数的用法
- matlab中repmat函数的用法
- Linux修改文件(目录)权限
- 易生信九天的转录组分析培训班总结
- Qt学习笔记: 实现截图效果
- A
- hdu 4734 F(x) (数位DP中dp数组的重用)
- matlab repmat函数
- select下拉框添加搜索功能
- final、finally、finalize的区别
- YTU OJ 3135: 动态规划基础题目之最长上升子序列(Java解题)
- 神经网络
- JDBC访问数据库的典型操作步骤
- 现代IM系统中消息推送和存储架构的实现
- 亚马逊无人店将对外开放 拜客出行接盘小蓝单车
- 关于原码,反码,补码以及数据的溢出