How to fix array indices must be positive integers or logical values
Show older comments
%I'm trying to read a wav file and plot in the time domain
[y,fs] = audioread('Samuel_Pappalardo.wav')
t = linespace (0,length(y)/fs, length(y));
figure;
plot(t,y);
Accepted Answer
More Answers (1)
Image Analyst
on 25 Dec 2021
0 votes
See the FAQ for a thorough discussion of that error plus more.
Categories
Find more on Bartlett 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!