2D plot of x*sin(1/x)
13 次查看(过去 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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!