find x subjected to some limit.
1 回表示 (過去 30 日間)
古いコメントを表示
I want to to find a<=x<b and c<=y<d in a matrix. But simply I can't. I would appreciate if you help me.
0 件のコメント
採用された回答
Thomas
2012 年 5 月 30 日
This might be what you need
q=rand(3,3); % generate 3x3 random matrix
a=0.1; b=0.3; c=0.5;d=0.9; %values of a b c and d
x=q(q>a&q<b) % to find value greater than a and less than b in matrix q
y=q(q>c&q<d) % to find value greater than c and less than d in matrix q
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!