2D plot of x*sin(1/x)
6 ビュー (過去 30 日間)
古いコメントを表示
x = [-1/pi:0.01:1/pi];
y = x*(sin(1/x));
plot(x,y)
採用された回答
その他の回答 (1 件)
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)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!