2D plot of x*sin(1/x)

9 ビュー (過去 30 日間)
feeroz babu
feeroz babu 2020 年 12 月 15 日
コメント済み: Stephen23 2020 年 12 月 15 日
x = [-1/pi:0.01:1/pi];
y = x*(sin(1/x));
plot(x,y)

採用された回答

KSSV
KSSV 2020 年 12 月 15 日
編集済み: KSSV 2020 年 12 月 15 日
x = [-1/pi:0.01:1/pi];
y = x.*(sin(1./x)); %<------ element by element operation
plot(x,y)
  1 件のコメント
feeroz babu
feeroz babu 2020 年 12 月 15 日
Thank you

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 12 月 15 日
y = x.*(sin(1./x));
In MATLAB the * operator is algebraic matrix multiplication (inner product) and the / operator is matrix division (which is similar to matrix multiplication by pinv() of the array)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

製品


リリース

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by