How do i plot this rect function and unit step function into matlab?
조회 수: 8 (최근 30일)
이전 댓글 표시
답변 (2개)
madhan ravi
2018년 11월 2일
댓글 수: 1
madhan ravi
2018년 11월 2일
If you still don’t figure it out , post the code which you tried here so that it can be corrected .
Tilkesh
2022년 3월 28일
function y = rect(x, D)
% function y = rect(x, D)
if nargin == 1, D = 1;
x = abs(x);
y = double(x<D/2);
y(x == D/2) = 0.5;
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!