I want to make a continuous sine function
이전 댓글 표시
this code keeps plotting points but I want a smooth continuous line…How do I do that?
for x = -3*pi:pi/10:3*pi
if sin(x) > 0
y = sin(x);
else
y = 0;
end
plot(x, y);
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
