This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function dBLossPerM = RG58_loss(f) | |
| % Function for estimate RG58 coaxial cable loss as a function of frequency | |
| % per meter. Data is drawn from https://www.w4rp.com/ref/coax.html and is | |
| % not varified with real lab measurments. Take it with a | |
| % grain of salt. | |
| % | |
| % Output interpolates from the spaced data points. This is for estimating | |
| % only. | |
| % | |
| % Author: Andrew Wade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% First a method using quaternions | |
| qtn = randrot(1000,1); | |
| pts = rotatepoint(qtn, [1 0 0]); | |
| figure() | |
| scatter3(pts(:,1), pts(:,2), pts(:,3)) | |
| axis equal | |
OlderNewer