Step function with a slanted edge

조회 수: 1 (최근 30일)
Swati Jain
Swati Jain 2017년 7월 23일
댓글: Image Analyst 2017년 7월 24일
Hi,
I want to write a code for a step function with its edge slanted at a small angle. I could write a code for simple step function but I want to give an angle to its edge. In addition to that, I want to give pixel value to my step function to be 100x100. How can I do that?
function out = step_1(x)
out = 0 * x;
out(find(x==0))=0.5;
out(find(x>0)) = 1;
end

답변 (1개)

Image Analyst
Image Analyst 2017년 7월 23일
  댓글 수: 3
Image Analyst
Image Analyst 2017년 7월 23일
That's just a notice. You can ignore it. See attached demo for more info on how to zoom.
Image Analyst
Image Analyst 2017년 7월 24일
Yes, warnings are in orange text, and real errors are in red text.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by