フィルターのクリア

error using find: Matrix dimensions must agree

1 回表示 (過去 30 日間)
Jack Ie
Jack Ie 2016 年 4 月 22 日
コメント済み: Walter Roberson 2017 年 5 月 22 日
comms is a matrix and nb is a vector with different dimensions.
[nb_comms,~]=find(comms==nb);
error: Error using == Matrix dimensions must agree.

回答 (1 件)

Star Strider
Star Strider 2016 年 4 月 22 日
I am not certain what you are doing. See if the intersect or related functions do what you want.
Example:
comms = randi(99, 1, 50);
nb = randi(50, 1, 10);
[nb_comms, idx_comms, idx_nb] = intersect(comms,nb);
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 5 月 22 日
Siamak comments to Star Strider:
Thank you so much for your helpful answer

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

カテゴリ

Help Center および File ExchangePulsed Waveforms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by