フィルターのクリア

How can we equate two matrices element by element suppose one matrix is a variable matrix and the other is a coefficient matrix

2 ビュー (過去 30 日間)
How can we equate two matrices with same size,element by element suppose one matrix is a variable matrix and the other one is a coefficient matrix

回答 (1 件)

Domanic
Domanic 2018 年 1 月 25 日
To test two equal-sized matrices for equality element-wise, you simply use the == operator. For example, take the two random binary 4x4 matrices, A and B, defined as follows:
A=randi([0 1],4),
B=randi([0 1],4)
Then the element-wise test for equality is simply:
A==B

カテゴリ

Help Center および File ExchangeAntenna and Array Analysis についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by