Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Yipit Clone Script - Daily Deals Software 1.0.2
Devart Excel Add-in for Oracle 1.7
Devart Excel Add-in for Freshdesk 1.7
Devart Excel Add-in for G Suite 1.7
C# QR Code Generator 4.0.2.2
Salesforce WordPress Customer Portal 3.2.0
Single Leg MLM 1.2.1
OzGIS 14.6
Quick Maps For Dynamics CRM 3.1
Job Board Software 4.2
Top Code
USANet Classified Ads pro 4.50
Remote Desktop Control 1.6.0.70
YellowMaker 3.II
Atlant Classifieds (Standard) 8.IX
Chilli Classifieds updated 3.I
AnyChart JS Charts and Dashboards 8.6.0
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
mex_sepsq 1.0
File ID: 80320






mex_sepsq 1.0
Download mex_sepsq 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 71.7 KB
Downloads: 4
Submit Rating:
mex_sepsq 1.0 Description
Description: To compute the Euclidean separation (L2 norm) between two sets of points in MATLAB can be slow and/or memory-hungry. In some cases (most particularly, if you are working with 2D, 3D or 4D data), this function will do it 2-4 times faster than the fastest m-code I've seen (due to Germano Gomes) and hundreds of times faster than a typical memory-efficient nested loop.

NB: for D much greater than 10-15, performance is better using GG's m-script. See the screenshot for a performance plot - green is GG, blue is mex_sepsq.

>> mex_sepsq_demo

A = randn(4, 5000);
B = randn(4, 5000);

C1 = mex_sepsq(A, B);
Elapsed time is 0.201335 seconds.

C2 = sepsq_gg(A, B);
Elapsed time is 0.517755 seconds.

Relative time per implementation: 1.00 2.57

License: Freeware

Related: mscript, Screenshot, Green, mex sepsqgtgt, gg039s, loopnb, greater, Performance, mex sepsq demo, randn, sepsq gga, relative, Implementation, seconds, 5000b, mex sepsqa

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 71.7 KB

Downloads: 4



More Similar Code

It is the version in C Mex frame of my cardiac processor VI1 for cardiac cells oscillations.I am very in love with matlab and mathworks products so i publish only for one time my work out of matlab in C Mex for C execution.



Learn how to create MEX-functions: programs written in C, C++, or Fortran code that are callable from MATLAB. This article is a guide to getting started and performing practical tasks as well as a reference.

Contents:
*...



This code is the mex interface for computing Earth Movers Distance between signatures and is based on the Y. Rubner's C Implementation.
(http://ai.stanford.edu/~rubner/emd/default.htm)

For building the mex file you should have...



This small script modifies the files used by MATLAB to compile mex-functions within MATLAB so that CUDA is supported.

Once the script setup_cuda_mex.m is run you can just compile CUDA mex files with the function cuda_mex.m.



Here are some configuration files to allow the mex -setup being with
i) Intel Fortran 8.1 with MS Visual Studio 2003
ii) Intel Fortran 10.1 with MS Visual Studio 2005



I installed Microsoft Visual Studio(MVS) 2008 and Matlab R2007b and tried "mex -setup" command from Matlab. However my MVS 2008 was not recognized by Matlab. I debugged mex.m and found a way to show MVS 2008 to Matlab. Necessary files...



The MATLAB compiler toolbox builds native libraries (MEX-functions) and executables (applications) for different platforms. The compiler scripts "mex" and "mcc" offer a user-friendly interface for compiling and linking M, C,...



H2Mex is a program that gernerates automatically an interface file (MEX file) from header file (the .h file).

The Header file format is a clean C format, It's extended with some modifiers that allows to H2MEX to understand the exact...



I recently had a requirement to make MFC calls within a mex function. After looking around I was unable to find a single example, so I had to develop my own. Hopefully this will make the job easier for you. The procedure is actually pretty easy...



I saw that there was no simple example on who to use MS Visual Studio 2005 to make and debug Matlab mex files.
The solution added has a readme.txt that specifies filepaths that must be changed to make it work on your PC.

User Review for mex_sepsq
- required fields
     

Please enter text on the image