How to generate 6 cycle or 10 cycle hanning modulated tone burst excitation

54 ビュー (過去 30 日間)
Yaser Arafath Gulam Dhasthagir
Yaser Arafath Gulam Dhasthagir 2023 年 1 月 11 日
コメント済み: Mathieu NOE 2023 年 1 月 31 日
I have been trying to generate a hanning window modulated tone burst excitation with a centre frequency of 100 KHz and with 6 or 10 cycles as shown in the picture. Once generated I want to use this as an input excitation to my transducer.
Please let me know how can i acheive this?

回答 (1 件)

Mathieu NOE
Mathieu NOE 2023 年 1 月 11 日
hello
try this
all the best
fsin = 100e3; % sine freq
Fs = 100*fsin; % sampling freq
dt = 1/Fs;
duration = 0.2e-3; % signal duration in seconds
samples = ceil(duration*Fs);;
t = dt*(0:samples-1);
offset = dt*(samples/2); % to center the gaussian envelope
a = 200*Fs; % increase or decrease a to change number of periods
signal = sin(2*pi*fsin*t).*exp(-a*(t-offset).^2);
figure(1),plot(t,signal);grid
  11 件のコメント
Mathieu NOE
Mathieu NOE 2023 年 1 月 20 日
if you want to create 1 s of data and you are limited to 8192 points, then your effective max sampling rate is 8192 Hz. How do you want to create a 100 kHz signal in this case ?
Mathieu NOE
Mathieu NOE 2023 年 1 月 31 日
hello
Problem solved ?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by