I want to derive sinc (0) value through inline or subs function.

1 回表示 (過去 30 日間)
euncheol choi
euncheol choi 2017 年 4 月 5 日
回答済み: Walter Roberson 2017 年 4 月 5 日
I can get a value of 1 by writing sinc (0) without using syms. However, I can not derive the value of sinc (0) using syms with inline and subs functions. For example, subs (sin (k), k, 0) yields a 'NaN' value other than '1'.
Is there a way to get a value of 1 instead of NaN in this way?
What I'm trying to do is to use sin (a * k) / (b * k) when k equals zero rather than simple sinc (k)
Please help me.

回答 (2 件)

Greg Dionne
Greg Dionne 2017 年 4 月 5 日
sin(a*k)/(b*k) = 1/b * sin(a*k)/k = a/b * sin(a*k)/(a*k) = a/b * sinc(a*k).

Walter Roberson
Walter Roberson 2017 年 4 月 5 日
syms a b k
limit( sin (a * k) / (b * k), k, 0)
sinc is a limit, not a direct calculation.

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by