what's the answer and what's mean ?? about matrices
Mostrar comentarios más antiguos
a = [ 3 4 ; 5 6 ]
b = [ 1 0 ; 0 1 ]
g = a|b ------> what's the answer and what's mean ??
Respuesta aceptada
Más respuestas (1)
Jan
el 22 de Mzo. de 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.
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!