开发者

How to multiply a matrix by a scalar value in MATLAB

开发者 https://www.devze.com 2023-02-22 22:24 出处:网络
I want to multiply an image by a scal开发者_如何学运维ar value in MATLAB. How do I do it?You just use the * operator, as you might expect, e.g.

I want to multiply an image by a scal开发者_如何学运维ar value in MATLAB. How do I do it?


You just use the * operator, as you might expect, e.g.

y = x * k;

where x is the input image, k is a scalar value, and y is the resulting scaled image.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号