About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconDISTANCE2LINE c++ mex (Scripts) Publisher's description



This function distance2line computes minimum euclidean distances (vertical distances) of "points" (nxm matrix which m=2,3) to a "line" (1xm which m=2,3). The input "line" is defined by its two points that lying on this line

The output "distances" is a nx1 vector matrix consisting of distances of points to the line. The second output "proj_points" is also a nxm matrix and this matrix gives the coordinates of vertically projected points onto the line.

I did not include any input error checking for the speed considerations because i use this function in a loop in MATLAB. So this function must be used with care.

You can use the provided example file for usage.

Mehmet OZTURK, 2011

System Requirements:

MATLAB 7.12 (2011a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

DISTANCE2LINE c++ mex (Scripts) Tags:

Click on a tag to find related softwares

Is DISTANCE2LINE c++ mex (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.