필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

come posso avere la dimensione di T come la dimensione di x

조회 수: 2 (최근 30일)
mina massoud
mina massoud 2018년 12월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
x = [.1 .2 .3 .7 ; .8 .9 .1 .2 ];% Funziona con questo array.
T (x> .5) = x;
T (x <= .5) = 1

답변 (1개)

madhan ravi
madhan ravi 2018년 12월 16일
x = [.1 .2 .3 .7 ; .8 .9 .1 .2 ];% Funziona con questo array.
T=zeros(size(x));
T(x>.5) = x(x>.5);
T(x<=.5) = 1
  댓글 수: 2
mina massoud
mina massoud 2018년 12월 16일
grazie mille adesso mi ha funzionato
madhan ravi
madhan ravi 2018년 12월 17일
Anytime :) , if my answer worked make sure to accept the answer.

이 질문은 마감되었습니다.

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!