Filter löschen
Filter löschen

what's the answer and what's mean ?? about matrices

1 Ansicht (letzte 30 Tage)
ahmad qadan
ahmad qadan am 21 Mär. 2018
Beantwortet: Jan am 22 Mär. 2018
a = [ 3 4 ; 5 6 ]
b = [ 1 0 ; 0 1 ]
g = a|b ------> what's the answer and what's mean ??

Akzeptierte Antwort

Amjad Green
Amjad Green am 21 Mär. 2018
g=[1 1;1 1]
mean of matrix is the sum of each column divied by number of elements in it
so in this case mean of matrix is a 1*2 matrix
  1 Kommentar
ahmad qadan
ahmad qadan am 21 Mär. 2018
thank you ,, but can you explain me how the sum column process was done

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Jan
Jan am 22 Mär. 2018
You are asking for the meaning of the operator | , not for the mean() of a matrix.
a = [ 3 4 ; 5 6 ]
b = [ 1 0 ; 0 1 ]
g = a|b
The result is:
g = [1,1; ...
1,1]
and the operator | is the same as or(): Reply 1, if either the element of a or the element of b is not 0.

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by