How do i plot this rect function and unit step function into matlab?
이전 댓글 표시
답변 (2개)
madhan ravi
2018년 11월 2일
0 개 추천
댓글 수: 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일
0 개 추천
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
카테고리
도움말 센터 및 File Exchange에서 Labels and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
