x=input('Size: ') X=triu(ones(x),1) imshow(X)
MATLAB: How to write a Matlab script that is able to output images of triangles based on the size input? The following shows the half of a triangle but i can’t find a way to make an isolated triangle. (The size you can put at range 3 – 8 )
matrix triangle
Best Answer