フィルターのクリア

plot an specific function in matlab

2 ビュー (過去 30 日間)
2NOR_Kh
2NOR_Kh 2022 年 10 月 13 日
編集済み: 2NOR_Kh 2022 年 10 月 13 日
I have this equation to be plotted, I wanted to know if there is any specific function for this equation or not, somethins like beseel function, I say bessel function because at first I thought this equation is bessel function but after searching bessel function I realized I was wrong.
plot the below equation for -1<sinx<1:
dn=1/32 sin(38.4pi*sinx)/sin(1.2pi*sinx)

採用された回答

2NOR_Kh
2NOR_Kh 2022 年 10 月 13 日
編集済み: 2NOR_Kh 2022 年 10 月 13 日
I could find the answer to this question after some search and I'll answer it for anyone who came up with the same question in the future.
This function which is a sine term over another sine term is ac ting like a periodic sinc function and is called dirichlet function and you can use y = diric(x,n) to use this function in matlab.

その他の回答 (1 件)

David Hill
David Hill 2022 年 10 月 13 日
dn=@(x)1/32*sin(38.4*pi*sin(x))./sin(1.2*pi*sin(x));
x=-pi/2:.01:pi/2;
plot(x,dn(x))
  2 件のコメント
2NOR_Kh
2NOR_Kh 2022 年 10 月 13 日
Hi David,
Thank you so much for your answer; I appreciate it, but I asked if there is a specific function to plot this or not because it asked to plot it with a specific function, the closest built-in function that I could find was the Bessel function, but Bessel is not a sine term over another sine term which we can see in this question. I searched through Internet, but unfortunately, I couldn’t find anything.
David Hill
David Hill 2022 年 10 月 13 日
You are plotting it with a specific function, plot. dn is a specific function defined by you.

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

カテゴリ

Help Center および File ExchangeBessel functions についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by