How to divide every column of an array with another column of the same length?

24 views (last 30 days)
I have a numerical array Y (1058x18) and another numerical array S (1058x1). I want to divide every column of Y with the single column of S and have an output X (1058x18)

Accepted Answer

Adam
Adam on 15 Aug 2018
Edited: Adam on 15 Aug 2018
res = Y ./ S;

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!