How to create these shapes in Matlab
Show older comments
Ive benn trying to complete this assignment with very little luck, here is the code ive managed to write thus far:
filepath1 = '\\myfilepath\\BinaryImage.png';
A = false(100);
figure('Name','Binary images')
subplot(2,2,3) %subplot( no. of rows, no. of cols, position)
for j = 1:100
A(j, 1:(51-j)) = 1;
end
subplot(2,2,3)
imshow(A)
I have attached the question with all the information I have been given.
Any help would be greatly appreciated.
1 Comment
Accepted Answer
More Answers (1)
Image Analyst
on 22 Nov 2022
1 vote
Didn't I give you everything you need in your duplicate post:
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!