vector subtraction

6 visualizzazioni (ultimi 30 giorni)
osman
osman il 11 Ott 2011
z=[1,2,3,5,6,7,8,9,0,12,12,3,4,1,2,4,5]; y=[1,2,3,4];
i want to subtract row of z from the every element of y. can i do it without loops.
  1 Commento
Sean de Wolski
Sean de Wolski il 11 Ott 2011
What is different about this and your duplicate post here:
http://www.mathworks.com/matlabcentral/answers/18021-matrix-vector-substraction

Accedi per commentare.

Risposte (1)

Fangjun Jiang
Fangjun Jiang il 11 Ott 2011
bsxfun()

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by