How to give a variable(here 17658x2 matrix) some proper units desired ?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Abhishek Maurya
il 24 Feb 2018
Commentato: Walter Roberson
il 27 Feb 2018
[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 Commenti
Risposta accettata
Walter Roberson
il 24 Feb 2018
t = (0:size(y,1)-1)/fs;
plot(t, y)
10 Commenti
Walter Roberson
il 27 Feb 2018
Read the documentation for ismembertol on how to provide your own tolerance
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!