i need to plot a triangle using inpolygon function with particles distributed randomly in the xy axis.using hit and miss monte carlo method i need to calculate the percentage of particles inside the triangle and find the area of the triangle using the same.pls help.i am less than a beginner in matlab.
MATLAB: Hi, i need help in plotting a triangle
hit and miss monte carloinpolygon
Related Question
- Poly2cw doesn’t work for this simple rectangle. I have an example here. Could you please check this code
- Simulation for a triangle
- How to create a graph with a shaded area
- When i run the script without the fprintf line i get the right answer. however when i apply the fprintf line i get the error “index exceeds matrix dimensions.” how do i fix this? (the functions are in different .m files obviously)
Best Answer