vectors must be at the same length error
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, im trying to plot this fuction but im getting th 'vectors must be at the same length' error, Can anybody help to find a solution?
t=-10:10;
x = heaviside(t+2)-heaviside(t-2);
plot(t,x);
y = awgn(x,21,'measured');
plot(t,[x y]);
legend('Original Signal','Signal with AWGN');
0 Commenti
Risposta accettata
Daniel M
il 20 Ott 2019
You are concatenating x and y into a doubly long vector. If you want to plot both signals, do
plot(t,x,t,y)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Vibration Analysis in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!