heaviside not working in my script
이전 댓글 표시
Im trying to plot a step function in matlab and by looking around, the best thing to do is use heaviside function but some how it doesn't recognize it in my script. I went to search for functions in matlab, and that function doesn't even exist. How do you make a step function in matlab??
댓글 수: 1
This question has been asked (and answered) before: http://www.mathworks.com/matlabcentral/answers/242109-what-is-the-problem-with-the-heaviside-function
답변 (1개)
Steven Lord
2015년 9월 11일
0 개 추천
HEAVISIDE is a function in Symbolic Math Toolbox. Check the output of the VER function to see if you have this toolbox installed. If you don't, it's not a difficult function to write.
But if you want to create a stairstep plot, look at the STAIRS function.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!