what's the answer and what's mean ?? about matrices
1 回表示 (過去 30 日間)
古いコメントを表示
a = [ 3 4 ; 5 6 ]
b = [ 1 0 ; 0 1 ]
g = a|b ------> what's the answer and what's mean ??
0 件のコメント
採用された回答
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 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!