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

조회 수: 1 (최근 30일)
ahmad qadan
ahmad qadan 2018년 3월 21일
답변: Jan 2018년 3월 22일
a = [ 3 4 ; 5 6 ]
b = [ 1 0 ; 0 1 ]
g = a|b ------> what's the answer and what's mean ??

채택된 답변

Amjad Green
Amjad Green 2018년 3월 21일
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
ahmad qadan
ahmad qadan 2018년 3월 21일
thank you ,, but can you explain me how the sum column process was done

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jan
Jan 2018년 3월 22일
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.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by