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에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!