My graph is blank
조회 수: 1 (최근 30일)
이전 댓글 표시
The function is n=(m-10)/m for 0(less thab or equal to)m(less than or equal to)5
>> m=0:0.1:5;
>> n=(m-10)/m;
>> plot(m,n);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/202153/image.png)
댓글 수: 0
채택된 답변
Star Strider
2019년 1월 30일
You need to use element-wise division:
m=0:0.1:5;
n=(m-10)./m;
plot(m,n);
Replace / with ./ (note the dot operator), and it works.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Directed Graphs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!