该语句在MATLAB中意味着什么? [英] What does this statement mean in MATLAB?

查看:88
本文介绍了该语句在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 0s 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆