Thank you for assisting me with my MATLAB question. If I posted this on the actual question you never would of seen it. What you suggested to do worked and produced the results I was suppose to get. I wanted to say thank you. And a grid_size of 500 seems to produce more stable results. A grid size of 51, although produced correct results, produced a image that was blurred. Once again thank you for your assistance.

For continuity, it would be easier to post it on the original post. If there is no answer, you could post a new one as you did.

I am glad that it worked out. I put a grid of 51 because I had to scan the results with a "print-plot".

Also, see my recommendations for your new post.

You're welcome! I'm glad I could assist you with your MATLAB question and that the suggestion I provided worked for you. It's great to hear that a grid size of 500 produced more stable results for your specific problem. It's not uncommon for smaller grid sizes to lead to blurred images, as details can be lost due to inadequate sampling. Increasing the grid size allows for more accurate representation of fine details. However, it's important to balance the grid size with computational resources and time constraints, as larger grid sizes require more computation. If you have any more questions or need further assistance, feel free to ask.