Soustraction between all line of a matrix
Mostra commenti meno recenti
Hello all,
I have a matrix (6964,1) i would like to do a mathemetical operation between each line of the matrix. i mean line 1 with all the line then line 2 with all the line then line 3 with all the line etc. and I would like that the result return into a new matrix. Can someone help mep lease?
Risposta accettata
Più risposte (1)
madhan ravi
il 15 Set 2020
bsxfun(@minus, matrix(:), matrix(:).') % for newer versions bsxfun() is not needed
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!