Info
この質問は閉じられています。 編集または回答するには再度開いてください。
come posso avere la dimensione di T come la dimensione di x
2 ビュー (過去 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!