How do i plot this rect function and unit step function into matlab?

답변 (2개)

madhan ravi
madhan ravi 2018년 11월 2일

0 개 추천

See rectangularpulse and piecewise are sufficient enough to finish your homework.
Remark: use symbolic variables using symbolic toolbox

댓글 수: 1

If you still don’t figure it out , post the code which you tried here so that it can be corrected .

댓글을 달려면 로그인하십시오.

Tilkesh
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에 대해 자세히 알아보기

태그

질문:

2018년 11월 2일

답변:

2022년 3월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by