Using the time length of my audio signal as a time axis

2 ビュー (過去 30 日間)
Denny Muttathil
Denny Muttathil 2017 年 1 月 27 日
回答済み: KSSV 2017 年 1 月 27 日
How can i create a time axis, which is as long as my audio signal? I want to create a 3D-Plot, but i need to know, how to define my time axis.
I can get the length of my time axis, by putting the code line in my command window like this:
[y,fs] = audioread('filename');
TotalTime = length(y)./fs;
TotalTime
(for example) 10.8566*
Sorry if the questions sounds silly, but how can i write this? Doing it in matlab, btw. bold

採用された回答

KSSV
KSSV 2017 年 1 月 27 日
[y,fs] = audioread('filename');
t = linspace(0,length(y)/fs,length(y)) ;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio Processing Algorithm Design についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by