MATLAB Answers

0

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

Asked by mina massoud on 16 Dec 2018
Latest activity Commented on by madhan ravi
on 17 Dec 2018
x = [.1 .2 .3 .7 ; .8 .9 .1 .2 ];% Funziona con questo array.
T (x> .5) = x;
T (x <= .5) = 1

  0 Comments

Sign in to comment.

Tags

Products


Release

R2018b

1 Answer

Answer by madhan ravi
on 16 Dec 2018

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 Comments

grazie mille adesso mi ha funzionato
Anytime :) , if my answer worked make sure to accept the answer.

Sign in to comment.