How to plot this function ?
이전 댓글 표시
Hello all, I'm quite new to matlab , so I want to figure out how to plot that heaviside function ?

I want to get that graphic below the function.
답변 (2개)
Star Strider
2017년 9월 23일
Try this:
epsilon = @(t) 0.5*(t == 0) + 1*(t > 0);
t = linspace(-1, 1);
figure(1)
plot(t, epsilon(t))
axis([-1 1 -0.1 1.1])
Walter Roberson
2017년 9월 23일
fplot(@heaviside)
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!