필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
John Marl
John Marl 2018년 11월 2일
답변: Tilkesh 2022년 3월 28일

답변 (2개)

madhan ravi
madhan ravi 2018년 11월 2일
See rectangularpulse and piecewise are sufficient enough to finish your homework.
Remark: use symbolic variables using symbolic toolbox
  댓글 수: 1
madhan ravi
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
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

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by