How can i use fill3 to make a box
7 views (last 30 days)
Cris LaPierre on 29 Jan 2021
The issue appears to be that you have overwritten the fill3 function by naming your script/function fill3 as well. By doing so, MATLAB is now trying to use your file when you call fill3.
Change your file name to something else and MATLAB will again use its own fill3 function.
William on 29 Jan 2021
That's odd. I cut and pasted the code from your question and ran it. It produced a blue rectangle in the z=0 plane, which I think is what you intended. There was no error message.