if obj=L; [y fs]=wavread('tl.wav'); player=audioplayer(y,fs); play(player) else if obj=R; [y fs]=wavread('tr.wav'); player=audioplayer(y,fs); play(player) else if obj=F; [y fs]=wavread('mf.wav'); player=audioplayer(y,fs); play(player) else if obj=B; [y fs]=wavread('mb.wav'); player=audioplayer(y,fs); play(player) else [y fs]=wavread('s.wav'); player=audioplayer(y,fs); play(player) end end end end end
MATLAB: ??? Error: The expression to the left of the equals sign is not a valid target for an assignment.
vipin
Related Question
- Function ‘subsindex’ is not defined for values of class ‘audioplayer’
- Getting sound to play and stop
- I want to find and hear the frequency responce of a .wav file using following equation y(n)=y(n-1)-0.9*y(n-2)+x(n)+x(n-1) but still its giving error and sound after applying freq responce is not audible.the code is following
- How to use the PLAY function to play a sound wave without using the handle of an AUDIOPLAYER object
- Play audio song in background of the project
- I want to increase/decrease volume of audio file using the slider,is it necessary to run audio data from slider
Best Answer