Search Search Any Topic from Any Website Search
Distance and Angle in Lambertian Optical Link Let’s break this step by step and understand the math behind these lines. This is from optical wireless communication , specifically calculating distances and angles for a Lambertian LED-to-photodetector link. 1. Distance from the LED to a point on the receiver plane The MATLAB line: D1 = sqrt((XR - XT(1,1)).^2 + (YR - YT(1,1)).^2 + h^2); What it means mathematically: (XT(1,1), YT(1,1)) → x, y coordinates of LED #1 on the transmitter plane. (XR, YR) → x, y coordinates of points on the receiver plane . h → vertical distance between the LED plane and the receiver plane (height). We are computing the 3D Euclidean distance from the LED to each point on the receiver plane: \[ D_1 = \sqrt{ (X_R - X_T)^2 + (Y_R - Y_T)^2 + h^2 } \] This is just the standard 3D distance formula: \[ \text{distance} = \sqrt{(\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2} \] \(\Delta x = X_R - X_T\) \(\Delta y = Y_R - Y_T\) ...