MATLAB Answers

Is there a way to multiply a formatted dlarray with a matrix?

1 view (last 30 days)
Chonghao WANG
Chonghao WANG on 16 Nov 2020
Answered: Hrishikesh Borate on 18 Nov 2020
Given a formatted dlarray named y and a matrix named X consists of formatted dlarrays (e.g. each row of the matrix is a dlarray), is there a way to do matrix multiplication between X and y?

Answers (1)

Hrishikesh Borate
Hrishikesh Borate on 18 Nov 2020
Hi,
I understand that you want to multiply a formatted dlarray y, and a matrix X, rows of which are constructed using formatted dlarrays.
Currently, the matrix multiplication (mtimes, *) is only supported when one input is a formatted dlarray and other input is an unformatted scalar.
Element wise multiplication is supported when both the inputs are formatted dlarrays.
For more information, refer to dlarrays.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!