Info
This question is closed. Reopen it to edit or answer.
come posso avere la dimensione di T come la dimensione di x
1 view (last 30 days)
Show older comments
x = [.1 .2 .3 .7 ; .8 .9 .1 .2 ];% Funziona con questo array.
T (x> .5) = x;
T (x <= .5) = 1
0 Comments
Answers (1)
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
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!