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!