![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177551/image.png)
Step function with a slanted edge
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Image Analyst
am 23 Jul. 2017
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177551/image.png)
3 Kommentare
Image Analyst
am 23 Jul. 2017
That's just a notice. You can ignore it. See attached demo for more info on how to zoom.
Siehe auch
Kategorien
Mehr zu Visual Exploration finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!