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.

Answer from Paul R on Stack Overflow
🌐
TutorialsPoint
tutorialspoint.com › matlab › matlab_vector_scalar_multiplication.htm
MATLAB - Scalar Multiplication of Vectors
Scalar multiplication produces a new vector of same type with each element of the original vector multiplied by the number. Create a script file with the following code − · v = [ 12 34 10 8]; m = 5 * v · When you run the file, it displays ...
🌐
MathWorks
mathworks.com › matlab › mathematics › elementary math › arithmetic operations
times - Multiplication - MATLAB
The sizes of A and B must be the same or be compatible. If the sizes of A and B are compatible, then the two arrays implicitly expand to match each other. For example, if one of A or B is a scalar, then the scalar is combined with each element of the other array.
🌐
MathWorks
mathworks.com › symbolic math toolbox › symbolic computations in matlab › operators and elementary operations
times - Symbolic array multiplication - MATLAB
Multiply the matrix by the symbolic expression sin(b). Multiplying a matrix by a scalar means multiplying each element of the matrix by that scalar.
🌐
Matlab Scripts
matlabscripts.com › multiplication-matlab
Mastering Multiplication in Matlab: A Quick Guide
July 13, 2025 - The simplest way to perform multiplication in MATLAB is by using the asterisk (*) for scalar multiplication.
🌐
University of Pennsylvania Department of Linguistics
ling.upenn.edu › courses › ling545 › BasicLinearAlgebraInMatlab.html
COGS501 -- Homework 1 part 1 -- Matlab tour
You can enter a vector in Matlab by surrounding a sequence of numbers with open and close square brackets: ... The individual numbers that make up a vector are called elements or components of the vector. Operations on vectors include scalar multiplication (also of course scalar addition, subtraction, division)
Find elsewhere
🌐
MathWorks
mathworks.com › matlab › mathematics › linear algebra
mtimes - Matrix multiplication - MATLAB
For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox). ... The mtimes operator supports operations directly on tables and timetables without indexing to access their variables when one of the operands is a scalar. All elements in the table or timetable input must have data types that support matrix multiplication.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 1912765-multiply-individual-cells-of-a-matrix-by-a-scalar-using-a-for-loop
Multiply Individual Cells of a Matrix by a Scalar Using a For Loop - MATLAB Answers - MATLAB Central
February 15, 2023 - For example, to multiply each element of matrix p1 by a scalar value 100, you can write: ... This will create a new matrix with the same dimensions as A, where each element of p1 is multiplied by 100. Sign in to comment. ... https://www.mathworks.com/matlabcentral/answers/1912765-multiply-individual-cells-of-a-matrix-by-a-scalar-using-a-for-loop#answer_1171895
🌐
MathWorks
mathworks.com › matlab › mathematics › elementary math › arithmetic operations
Array vs. Matrix Operations - MATLAB & Simulink
MATLAB® has two different types of arithmetic operations: array operations and matrix operations. You can use these arithmetic operations to perform numeric computations, for example, adding two numbers, raising the elements of an array to a given power, or multiplying two matrices.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 598096-multiplying-scalar-by-matrix
multiplying scalar by matrix - MATLAB Answers - MATLAB Central
September 22, 2020 - Instead, you are dividing by lambda, and then multiplying by k and T. ... You're welcome. FYI, this was fairly easy to debug by inspecting the variable values when you plotted them.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 39474-scalar-multiplication
Scalar Multiplication - MATLAB Answers - MATLAB Central
May 26, 2012 - The largest power of 10 that MATLAB can store exactly in an IEEE 754 double precision number is 10^15.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 300258-multiplying-column-with-scalar
Multiplying column with scalar - MATLAB Answers - MATLAB Central
August 20, 2016 - And I need to multiply that with some scalar let's say 4. So I type in make matrix x = [1 2 3 4 5 6] and y= [7 ;7; 7; 8; 9; 10] And type this x*y*4 and get a 6x6 matrix. I want to get a 1x6 or 6x1 matrix with results. What would be optimal solution? Sign in to comment. Sign in to answer this question. ... https://www.mathworks.com/matlabcentral/answers/300258-multiplying-column-with-scalar#comment_386293
🌐
MathWorks
mathworks.com › matlabcentral › answers › 284965-how-can-i-multiply-a-vector-by-scalar
how can I multiply a vector by scalar? - MATLAB Answers - MATLAB Central
May 19, 2016 - Hi, I have a very simple case. I do not know why there is an error which says, (Undefined operator '*' for input arguments of type 'cell').C1 is a [1*44998] and k=[1*300] vectors. my purpose is to...
🌐
TutorialsPoint
tutorialspoint.com › matlab › matlab_matrix_scalar_operation.htm
MATLAB - Scalar Operations of Matrices
Scalar operations produce a new matrix with same number of rows and columns with each element of the original matrix added to, subtracted from, multiplied by or divided by the number.