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

5 visualizzazioni (ultimi 30 giorni)
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)

Risposta accettata

Adam
Adam il 15 Ago 2018
Modificato: Adam il 15 Ago 2018
res = Y ./ S;

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by