I am getting a straight line while running the following code. What is going wrong??
조회 수: 5 (최근 30일)
이전 댓글 표시
x=0.1:0.001:10;
y=exp(-x.^2/2)/sqrt(x);
plot(x,y)
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 2월 14일
편집: Azzi Abdelmalek
2014년 2월 14일
x=0.1:0.001:10;
y=exp(-x.^2/2)./sqrt(x);
plot(x,y)
It's ./ instead of /
댓글 수: 0
추가 답변 (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!