该语句在MATLAB中意味着什么? [英] What does this statement mean in MATLAB?
问题描述
这句话是什么意思?
im3 = appendimages(im1,zeros(size(im1,1),gap));
appendimages
是用于连接和gap=100
的函数,但是整个语句是做什么的?
appendimages
is the function for concatenation and gap=100
, but what does this whole statement do?
推荐答案
它看起来不像标准函数.但是我想我可以从描述中了解它的作用.
It doesn't look like a standard function. But I think I can understand what it does from the description.
此行zeros(size(im1,1),gap)
仅创建一个0
数组,该数组的行数与im1
相同,并且列数与gap
中指定的列数相同(您说的是100).因此,功能appendimages()
可能将此零矩阵连接到图像im1
的左端或右端.左或右取决于函数的实际定义.
This line zeros(size(im1,1),gap)
just creates an array of 0
s with the same number of rows as im1
and as many columns as specified in gap
(100 as you say). So possibly, the function appendimages()
joins this zero matrix to either the left end or the right end of the image im1
. Left or right depends on the actual definition of the function.
您还可以将另一个图像im2
作为appendimage(im1,im2)
联接到im1
.
You can also join another image im2
to im1
as appendimage(im1,im2)
.
这篇关于该语句在MATLAB中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!