MATLAB: Try to plot the multiple of rectangular ( or triangle) function with sin function.
matlab functionplotting
I tried to plot the multiple of rectangular (or triangle) function and sin function. This is my code for plotting. But I didn't know what is the error. Can you please help me to fix it.
Find the red stuff using color segmentation. Then erode the mask to separate the squares. Then examine each blob to see how many vertices it has and determine if it's a square, triangle, pentagon, or whatever. See attached demo.
Best Answer