How to give a variable(here 17658x2 matrix) some proper units desired ?
1 回表示 (過去 30 日間)
古いコメントを表示
Abhishek Maurya
2018 年 2 月 24 日
コメント済み: Walter Roberson
2018 年 2 月 27 日
[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!