필터 지우기
필터 지우기

How can I plot a graph with certain limitations?

조회 수: 1 (최근 30일)
J. Nash
J. Nash 2017년 1월 19일
답변: Walter Roberson 2017년 1월 19일
I need to plot the y=x^2 but only in the interval of (0,10] (half open,half closed interval). How can I do this in MatLab?

답변 (1개)

Walter Roberson
Walter Roberson 2017년 1월 19일
fplot(@(x) x.^2, [eps(realmin), 10])
eps(realmin) is the smallest representable positive floating point number. That is as close as MATLAB numeric processing can get to not including 0 but including limit(epsilon, epsilon > 0), but it is only about 10^(-330) which is not even close to being satisfactory as sufficiently "infinitely small". You can switch to the Symbolic toolbox, but you with it you cannot do much better than 10^(-50000000), maybe 10^(-99999999) but no better, which is still infinitely too large to be a satisfactory approximation of infinitely small.

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by