Matlab code to plot square (without builtin function):



Algorithm:


Code:


2 comments: