Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.548.370 Times

Calculation of distances from a given set of points to a set of segments 1.0

  Date Added: April 10, 2013  |  Visits: 325

Calculation of distances from a given set of points to a set of segments

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)



CSMV calculates distances from a given set of points to a set of linear segments SYNOPSIS: [squared_distances_to_segments I]=csmv(P,R,Q,to_plot) [squared_distances_to_segments I]=csmv(P,R,Q,...) INPUT P,R : arrays of coordinates of 2n segment endpoints (i.e., if there are n segments considered in p-dimensional Euclidean space, than P and R are n-by-p matrices); the sizes of P and R should coincide; p should be greater than or equal to unity. Q : an array of coordinates corresponding to the set of m points from which distances to the segments PR are calculated (Q should therefore be an m-by-p matrix). to_plot : (optional) graphical output. Any non-zero value would cause the graphical output. There will be no graphical output by default (if this parameter is not passed). OUTPUT squared_distances_to_segments : an n-by-m matrix whose j-th column contains n squared distance from the j-th point of Q to the segments PR. I : a vector of m elements representing indices of the segments PR which are the closest to points from Q.EXAMPLES (1-D, 2-D and 3-D cases with graphical outputs) 1) segments and points on the line PR_segments = [10,-10; -1,0; 2.3,1; 5,9; 10,10.2]; % note that PR do not have to be defined as directed segments! E.g. the third segment [2.3,1] in PR_segments is defined as an undirected segment. P = PR_segments(:,1); R = PR_segments(:,2); [squared_distances_to_segments I]=csmv(P,R,Q)OR [squared_distances_to_segments I]=csmv(P,R,Q,1); 2) plane P =[1 3; 4 6; 8 -1; 3 7] R = [0 -1; 2 2; 3 1; 0.1 2] Q =[4 1; 5 5; -1 3.5; -10 2; 10 -2] to_plot=1; [squared_distances_to_segments I]=csmv(P,R,Q,to_plot) 3) 3-D space P =[ 1 3 5; 4 6 9; 8 -1 -9; 3 7 0] R = [ 0 -1.0000 -1; 2.0000 2.0000 2; 3.0000 1.0000 4; 0.1000 2.0000 7] Q =[ 4.0000 1.0000 0; 5.0000 5.0000 8; -1.0000 3.5000 3; -10.0000 2.0000 -1; 10.0000 -2.0000 -1][squared_distances_to_segments I] = csmv(P,R,Q,1);

Requirements: No special requirements
Platforms: Matlab
Keyword: And 3d Are The Array Arrays As An Be An Be No Calculated Calculates Distances Default Defined Greater Mbyp Nbym Nbyp Nonzero Points Undirected
Users rating: 0/10

License: Freeware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


CALCULATION OF DISTANCES FROM A GIVEN SET OF POINTS TO A SET OF SEGMENTS RELATED
Education  -  Rachel and Sammy Visit the Prairie 1.3.2
Rachel and Sammy Visit The Prairie by Jannifer Powelson is an exceptional tool for teaching children about life on a Midwest prairie. With vivid photos plus realistic illustrations, this game will encourage kids to dive into the great...
62 MB  
Development Tools  -  Vectorized N-Body Equation 1.0
NBODYVECT - Fully vectorized n-body equationnbodyVect(x0,dx0,mus,t) integrates the n-body equations of motion using either a symplectic second order integrator, or any of the standard built-in or user supplied first order integrators. x0 - 3n x 1...
10 KB  
Games  -  3D Break the Bricks Artemis 1.2
3D Break the Bricks Artemis brings a whole new feel to puzzle action game. It is the game which combined "3D Break the Bricks" and "squash" and still more beautiful graphics and sound united. Enjoy exhilarating world. Please to enjoy...
36.4 MB  
Games  -  Cats and Dogs Twerk : The animal musical twerking to the beat - Free Edition 1.0
TRY OUR CATS AND DOGS TWERK: THE ANIMAL MUSICAL TWERKING TO THE BEAT GAME We all had heard about the fights and stories of cat and dog. Even they are always interesting too. Getting to change a little bit about the story we have...
15.7 MB  
Games  -  Gunship Counter Shooter 3D 1.0
The Ultimate Defense Shooting 3D Game is here. Simply Mind Blowing Be the frontline Commando in the war zone adventure. The invaders are striking your base and you are the last hope. Stand up for your country, take charge of your forces and...
60.7 MB  
Games  -  London Flame 1.0.0.0
Play and win Nokia Lumia. Olympic Games won't start without an Olympic Flame. Your are the sportsman, who has to bring an Olympic torch to London. Run your way. Overcome all the obstacles. Take all the bottles of water to retain energy....
6 MB  
Games  -  minion flappy dodge 1.0.0.0
You are Tom, a minion from the amazing Disney movie Despicable Me. Recently there has been an outburst of flesh eating flappy birds and they are becoming viral. Dodge as many falling flappy birds as you can to stay alive. You have 3 lives....
1024 KB  
Network & Internet  -  rss2imap 0.75
rss2imap is a tool which gets RSS (RDF Site Summary) from web and delivers to the IMAP server as an e-mail message. rss2imap enables you to use IMAP supported MUA as a RSS reader and to use IMAP functionality effectively such as unread mail...
952.32 KB  
Development Editors  -  Make Update and Update 1.08
Make Update and Update are a set of applications to update an older version of a file (or files) to a newer version. They work by finding just the differences between the two versions and applying those differences to the older version. This is...
 
Networking Tools  -  Network Infrastructure Change Reporter 1. 1. 2007
Network infrastructure devices, such as switches, routers, firewalls, and others, are the backbone of any computer network. Without routine discovery and auditing of network devices your network infrastructure is subject to security risks and...
5.32 MB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  PHP Docbook Displayer for Scripts 1.0b
PHP Docbook Displayer provides XSL and CSS stylesheets, and PHP scripts, to generate easily and dynamically websites from Docbook files.It aims at simplifying to the max the web publication process : simply drop the docbook file under the site root !
102.4 KB  
Development Tools  -  WP Translate 1.0
This simple language translation plugin allows your users to quickly translate your webpages, through a widget on your blog.You have the option to select the title of the Widget, which will be displayed above the language translation form. Users...
10 KB  
Development Tools  -  save2word 1.0
A simple function to copy figure from MATLAB into MS Word automatically. It is a modification of saveppt (a function in File exchange) that save figures to MS Powerpoint.
10 KB