Divide each column by a constant from a vector
34 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Frederik Bjerregaard
am 5 Mär. 2022
Kommentiert: Frederik Bjerregaard
am 5 Mär. 2022
I have a matrix A that has the format 150000x8 and a vector B of the format 1x8. I want to create a function that divide every value in the first column of the matrix by the first value from the matrix, the 2nd column with the second value and so on. Is there anyway to write this in one line or should i code it individually for each column?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!