- Create a test a array of integer values including at least some ones and zeros and test it
- Read the documentation, first.
What does this line really do?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
vimal kumar chawda
le 6 Déc 2021
Réponse apportée : David Hill
le 6 Déc 2021
a(1,a == 1) = -1;
a(1,a == 0) = 1;
I am not sure what does this line really do? Can someone explain to me?
2- Does anyone know the function of correlation, auto and cross? I want to build smooth function.
2 commentaires
dpb
le 6 Déc 2021
Réponse acceptée
David Hill
le 6 Déc 2021
Look at what this does.
a=randi(2,1,20)-1
a(a==1)=-1%same as a(1,a==1)=-1
a(a==0)=1%same as a(1,a==0)=1;
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!