How to give a variable(here 17658x2 matrix) some proper units desired ?
1 次查看(过去 30 天)
显示 更早的评论
[y,fs] = audioread('damn-it.wav');
plot(y); ----
when this code runs audio is stored in 'y' and on plotting ,it shows numbers from zero to 17658 on x-axis. I want to know amplitude at different times so x-axis unit in secs(here 'usec') is desired.
0 个评论
采纳的回答
Walter Roberson
2018-2-24
t = (0:size(y,1)-1)/fs;
plot(t, y)
10 个评论
Walter Roberson
2018-2-27
Read the documentation for ismembertol on how to provide your own tolerance
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!