Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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

此问题已关闭。

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!