get x coordinate from chord percent from the leading edge in matlab

Assuming that you have the chord length (c) and the percent position of the point from the leading edge (p), and that the leading edge starts at x=0, you can use the following formula to calculate the x coordinate:

main.m
x = c*p; 
10 chars
2 lines

For example, if the chord length is 10 units and the point of interest is at 30% of the chord length, then the x coordinate would be:

main.m
x = 10*0.3;
12 chars
2 lines

This would give you an x coordinate of 3 units.

related categories

gistlibby LogSnag