Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
mina massoud
mina massoud le 16 Déc 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
x = [.1 .2 .3 .7 ; .8 .9 .1 .2 ];% Funziona con questo array.
T (x> .5) = x;
T (x <= .5) = 1

Réponses (1)

madhan ravi
madhan ravi le 16 Déc 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 commentaires
mina massoud
mina massoud le 16 Déc 2018
grazie mille adesso mi ha funzionato
madhan ravi
madhan ravi le 17 Déc 2018
Anytime :) , if my answer worked make sure to accept the answer.

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!