Is there a function in matlab that allows you to get the rank of a binary matrix?

2 ビュー (過去 30 日間)
Dylan
Dylan 2013 年 2 月 3 日
I am trying to perform the rank of a binary matrix test to test if a sequence of bits is random. I took a selection of bits from a larger matrix containing all the data and put the data into a sub matrix of 32X32. I was trying to take the rank, but the only function does not take ranks of binary matrices.
  2 件のコメント
Walter Roberson
Walter Roberson 2013 年 2 月 3 日
When you say "rank" and "binary" do you mean that you are using GF2, e.g., 1+1 becomes 0 ? Or do you mean just that the matrix is of datatype "logical" and you want ordinary rank measurements?
Dylan
Dylan 2013 年 2 月 4 日
Yes, I mean 1+1 becomes 0.

サインインしてコメントする。

回答 (3 件)

Matt J
Matt J 2013 年 2 月 3 日
編集済み: Matt J 2013 年 2 月 3 日
Before taking the rank, convert your matrix to a numeric type, e.g. double precision
rank(double(YourMatrix))

Jan
Jan 2013 年 2 月 4 日
Perhaps this helps: FEX: parity.

Walter Roberson
Walter Roberson 2013 年 2 月 4 日

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by