【注】详情请参阅 MatLab help 文档。
repmat函数可以用来创建重复元素的矩阵,元素可以是MatLab的任何单个数据类型(double、char、cell、struct 等)值,也可以是矩阵。
B = repmat(A,n)
B = repmat(A,r1,...,rN)
B = repmat(A,r)
repmat 语法 | 等效替代语法 |
---|---|
repmat(NaN,m,n) | NaN(m,n) |
repmat(single(inf),m,n) | inf(m,n,‘single’) |
repmat(int8(0),m,n) | zeros(m,n,‘int8’) |
repmat(uint32(1),m,n) | ones(m,n,‘uint32’) |
repmat(eps,m,n) | eps(ones(m,n)) |
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有