Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

2 visualizzazioni (ultimi 30 giorni)
x = [.1 .2 .3 .7 ; .8 .9 .1 .2 ];% Funziona con questo array.
T (x> .5) = x;
T (x <= .5) = 1

Risposte (1)

madhan ravi
madhan ravi il 16 Dic 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 Commenti
madhan ravi
madhan ravi il 17 Dic 2018
Anytime :) , if my answer worked make sure to accept the answer.

Questa domanda è chiusa.

Tag

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!