listen to a sinusoid

5 ビュー (過去 30 日間)
Jetty Rakesh Aditya
Jetty Rakesh Aditya 2020 年 10 月 31 日
回答済み: Ameer Hamza 2020 年 10 月 31 日
i have the following code
Omega1 = pi/3;
phi1 = 0;
t1 = 0:0.01:30;
ct_sinusoid = cos(Omega1*t1+phi1);
plot(t1, ct_sinusoid);
title(['Continuous-Time Sinusoid2 with \Omega0 =',num2str(Omega1) ,'\phi0 =',num2str(phi1)])
I want to listen to the ct_sinusoid. Can someone help me how to achieve this. Thanks!

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 10 月 31 日
You can use audioplayer(): https://www.mathworks.com/help/matlab/ref/audioplayer.html object to play the sound. However, you will not listen to anything because the frequency is too low.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by