??? Error: The expression to the left of the equals sign is not a valid target for an assignment.
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!