How do I code to input x[n]signal to -1 or 1 for 0<n<10000 (arbitary output) digital signal processing Matlab
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
plz i can send you some bitcoin
2 commentaires
Réponses (1)
Nikhil Sonavane
le 1 Juin 2020
You can use the following code-
N=10000;
x=randi([0,1],N,1);
for i=1:N
if (x(i)==0)
x(i)=-1;
end
end
2 commentaires
Voir également
Catégories
En savoir plus sur Get Started with DSP System Toolbox 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!