필터 지우기
필터 지우기

My graph is blank

조회 수: 1 (최근 30일)
Kevin Chapman
Kevin Chapman 2019년 1월 30일
답변: Star Strider 2019년 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);

채택된 답변

Star Strider
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.
See the documentation section on Array vs. Matrix Operations (link) for an extended discussion.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by