フィルターのクリア

hi everyone , can anyone help me to make it , thank you

2 ビュー (過去 30 日間)
mina massoud
mina massoud 2019 年 4 月 11 日
コメント済み: mina massoud 2019 年 4 月 11 日
clear all
clc
X=[ 10 17 20 ; 1 4 8 ; 2 3 30 ]
Z=zeros(3,3)
% i need to put in the matrix Z this condition
% 1) if greatar than or equal 15 is 1
% 2)and if less than 15 is zero
%thank you

採用された回答

madhan ravi
madhan ravi 2019 年 4 月 11 日
I suggest you to read about logical indexing:
~(X<15)
  1 件のコメント
mina massoud
mina massoud 2019 年 4 月 11 日
i read about it but can u help me to get be the same dimensione of A instead of column vector
A=magic(4);
B=zeros(4,4); % i need a matrix in this dimension with that condition
B=A(A<5|A>10);

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by