I want to generate 5 percent of the randomly generated numbers in a fixed straight line equation. For example, i have two points (x1, y1) and (x2, y2), and now i have drawn a straight line between the two points, with the help of straight line equation. Now i want 100 random numbers to be generated out of which 5 percent of those random numbers should fall in the straight line that is joined between the two points.
MATLAB: I want to generate a fixed percent of random points on a straight line joining two points.
MATLABstraight line
Related Question
- I have a system of 3 linear equations with 2 variables. I can solve it by substitution but not with linsolve.
- How to generate random points inside a sphere?
- How to generate random points in a line
- Tight Boundary around a Set of Points
- Generate random 3D coordinates in a cylinder
- Fsolve How to pass several functions
Best Answer