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
0 个评论
回答(1 个)
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!