Im having trouble loading a program to explore the output using Plot Command
Mostra commenti meno recenti
We were asked to upload a code and use plot command to explore the output, but the code I uploaded is receiving errors, please help
load handel
sound (y,Fs)
multiplier = 0.10 ;
noise = randn(length(y),1) * multiplier ;
%% Explore This
sound_w_noise = y + noise ;
sound (sound_w_noise,y) ;
t = 1:length(y) ;
plot(sound_w_noise,1:200,t)
Error using sound (line 76)
Operands to the || and && operators must be convertible to logical scalar values.
Error in PlotCommandExploration (line 17)
sound (sound_w_noise, y) ;
This is the code I was told to upload and the errors I'm receiving. I have no idea where to start
1 Commento
madhan ravi
il 25 Nov 2018
upload handel
Risposte (1)
KALYAN ACHARJYA
il 25 Nov 2018
Modificato: KALYAN ACHARJYA
il 25 Nov 2018
load handel
sound (y,Fs)
multiplier=0.10 ;
noise=randn(length(y),1)*multiplier ;
%% Explore This
sound_w_noise=y+noise ;
sound(sound_w_noise) ;
t=1:length(y) ;
plot(sound_w_noise,t);

1 Commento
Michael Ballenger
il 25 Nov 2018
Categorie
Scopri di più su Audio and Video Data in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!