tag:www.mathworks.com,2005:/matlabcentral/fileexchange/feedMATLAB Central File Exchangeicon.pnglogo.pngMATLAB Central - File Exchange - type:Example category:"External Interfaces"User-contributed code library2015-03-06T04:29:07-05:00111100tag:www.mathworks.com,2005:FileInfo/448512013-12-27T15:41:42Z2015-02-28T16:06:32ZtoPPTtoPPT is a powerful tool for generating powerpoint presentations programmatically defined in matlab.<p>toPPT is a powerful tool for generating PowerPoint presentations programmatically defined in Matlab. It will use different scripts for performing exports of figures, tables and texts. For this purpose it will use scripts written by Jens Richter and in addition scripts written by others (see Acknowledgment) .
<br />Some features:
<br />- Adding figures to PowerPoint as image or vector graphic.
<br />- Adjusting resolution of images.
<br />- Adding texts to PowerPoint. Font, size, color, style etc. can be changed via css like tags.
<br />- Using a TeX interpreter for formulas and texts.
<br />- Adding tables to PowerPoint where tables can be defined as cells, vectors or matrices.
<br />- Pptx-templates can be assigned.
<br />- Using a strong placing algorithm with pre-defined positions for positioning all elements (figures, texts, tables)
<br />- Can close and save presentation.
<br />- Detailed example and help file for toPPT.
<br />- Using different fallback solutions in case errors happening.
<br />- Can identify slides by titles even the spelling is wrong by using edit distances.
<br />Thank you for all the positive feedback since I uploaded the first version of toPPT. Hopefully you like the new features :-). </p>
<p>All code was tested with Matlab 2014
<br />Older version of Matlab should work too! Older versions of toPPT were tested successfully down to Matlab 2011.</p>Jens Richterhttp://www.mathworks.com/matlabcentral/profile/authors/4830863-jens-richterMATLAB 8.4 (R2014b)Image Processing ToolboxInstrument Control ToolboxMATLABPowerPoint2362940277falsetag:www.mathworks.com,2005:FileInfo/498082015-02-24T12:35:38Z2015-02-24T12:35:38ZQR Code Generator based on zxingQR Code generator can generatre QR-Codes based on the zxing library.<p>QR Code generator can generate QR-Codes based on the zxing library. All files can be imported on the fly from a maven repository or can be downloaded via a command. Zxing is an open source project so it also possible to include your self-compliled files if you have security issues.</p>Jens Richterhttp://www.mathworks.com/matlabcentral/profile/authors/4830863-jens-richterMATLAB 8.4 (R2014b)QR-Code Generator needs at least Matlab2014a to be installed.41437falsetag:www.mathworks.com,2005:FileInfo/479092014-09-23T02:05:55Z2015-02-18T02:09:43ZPointsinpolyhedron-Test if points are in polyhedronTest if points are inside/outside/on single material or multi-material triangulated polyhedron<p>PINPOLYHEDRON:
<br /> This function is an implementation of a novel algorithm. It tests whether
<br />points are inside/outside/on a polyhedron defined by triangular faces and
<br />vertices. It can be used for various complicated models such as non-convex
<br />volumes, multi-material bodies, and there is no assumption about orientation
<br />of the face normals. Above all, the algorithm is very efficient especially
<br />for large-scale problems.To the authors' best knowledge, it is the fastest
<br />code in a large-scale setting.
<br />SYNTAX:
<br />output = pinpolyhedron (p,vertices,faces);
<br />INPUT:
<br /> p : The points to be tested represented as an Nx3 matrix of XYZ coordinates,
<br /> e.g., [x1 y1 z1; x2 y2 z2; …].
<br /> vertices : The vertices of the polyhedron, in an Mx3 matrix of XYZ coordinates,
<br /> e.g., [x1 y1 z1; x2 y2 z2; …].
<br /> faces : The faces of the polyhedron, in an Mx3 matrix,
<br /> e.g., [a1,b1,c1; a2,b2,c2; ...].a b c are the index numbers of the three vertices
<br /> forming the triangular faces.
<br />OUTPUT:
<br /> output : an Mx4 array. The first three columns are same as the input p.
<br /> The function set the fourth column as -1 and 0, standing for
<br /> outside or inside the polyhedron respectively ,and -2 stands for
<br /> p on the boundary.
<br />ABOUT multi-material polyhedron:
<br /> A body may be composed of different materials, from which one can get a
<br />multi-material polyhedron by triangulating its outer boundary and inner
<br />boundaries between different materials.
<br />Our algorithm can be used for multi-material polyhedrons too.
<br />The syntax in this case is almost the same. However, the input of faces
<br />should be an Mx5 matrix, e.g., [a1,b1,c1,m11, m12; a2,b2,c2,m21,m22; ...].
<br />Here a b c are still index numbers of vertices, and m1 m2 are the two
<br />materials on either side of a face.
<br />Invoking the function in this way, it will indicate, for a point inside
<br />the body, which material the point is in by setting the fourth column output
<br />value as the material number. If a testing point is exactly on a triangular face,
<br />whether the face is on the outer boundary or an inner one, the function
<br />will set the output value as -2.
<br />AUTHOR: Guo YuFei, Jose M. Maisog, Liu JF
<br />REFERENCE : Liu JF, Y.Q. Chen, Jose M. Maisog, George Luta, A new point
<br />containment test algorithm based on preprocessing and determining triangles,
<br />Computer-Aided Design, vol 42, No.12, December 2010, Pages 1143-1150.
<br />22 Sep 2014 : Version 1.0
<br />Problems or suggestions? Email me: <a href="mailto:guoyufei2014@gmail.com">guoyufei2014@gmail.com</a>
<br />More information? Get from: <a href="https://stat.ethz.ch/CRAN/web/packages/ptinpoly/">https://stat.ethz.ch/CRAN/web/packages/ptinpoly/</a></p>YuFei Guohttp://www.mathworks.com/matlabcentral/profile/authors/5492112-yufei-guoMATLAB 7.14 (R2012a)MATLABfalsetag:www.mathworks.com,2005:FileInfo/489472015-01-05T03:07:49Z2015-01-06T07:00:27ZIB4mCreate ScannerSubscriptions, access real-time MarketData, place orders, and more<p>Interactive Brokers API for Matlab</p>Abel Brownhttp://www.mathworks.com/matlabcentral/profile/authors/5783642-abel-brownMATLAB 8.4 (R2014b)MATLABInteractive Brokers Account
Trader Workstationfalsetag:www.mathworks.com,2005:FileInfo/482792014-10-27T15:59:12Z2014-10-27T16:07:21ZNatNet (Motive/Arena) simple sample for location data by Or Hirshfelda Simple Sample to transfer Mocap data from Motive/Arena to Matlab using NatNet stream<p>It took me time to understand the sample including in NateNet SDK and the only thing i required from it is to get current data. so after many hours of trails and errors I wish to help fellow programmer that would need to handle this task.
<br />please acknowledge me if you use this code</p>Or Hirshfeldhttp://www.mathworks.com/matlabcentral/profile/authors/5020917-or-hirshfeldMATLAB 8.1 (R2013a)Signal Processing ToolboxMATLABMotive, Optitrack, NatNet SDK26449falsetag:www.mathworks.com,2005:FileInfo/441972013-11-06T22:17:41Z2014-10-15T11:19:41ZCalling Shared Libraries from SimulinkThis paper discusses several approaches for calling shared libraries from Simulink models<p>This paper describes various approaches for calling shared libraries from Simulink models. Both explicit (load-time) and implicit (run-time) linking is considered.</p>Mikhailhttp://www.mathworks.com/matlabcentral/profile/authors/2945398-mikhailMATLAB 8.4 (R2014b)SimulinkMATLABA supported host compiler. Stateflow for calling shared libraries from Stateflow charts. Embedded Coder for creating host-based shared libraries from Simulink models.falsetag:www.mathworks.com,2005:FileInfo/296152010-12-03T16:41:21Z2014-01-15T22:27:01Zadodb_toolsAdodb_tools allow communication with different types of databases through ADO OLEDB component. <p>Package adodb_toolbox allows communication with different types of databases through Microsoft's ADO (ActiveX Data Objects) OLEDB component. The package was designed to work on Microsoft SQL Server, Oracle, Microsoft Access, MySQL and other databases. </p>
<p>This package can connect to dozen different database types, perform wide range of different query types and convert results to MATLAB Struct data structures as well as regular cell tables. Matlab struct output uses similar format as used by xml_io_tools and csv2struct libraries. Reading and writing BLOB objects is supported.</p>
<p>This package can be studied, modified, customized, rewritten and used in other packages without any limitations. All code is included and documented. Software is distributed under BSD Licence (included).</p>Jaroslaw Tuszynskihttp://www.mathworks.com/matlabcentral/profile/authors/35549-jaroslaw-tuszynskiMATLAB 7.10 (R2010a)8385954913621falsetag:www.mathworks.com,2005:FileInfo/174382007-11-07T05:39:06Z2011-07-23T14:47:18ZFast Gaussian Transform mex implementationMex inplementation of the FGT transform<p>Here is another fast implementation of the FGT transform.</p>
<p>Reference :
<br /><a href="http://www.cs.ubc.ca/~awll/nbody_methods.html">http://www.cs.ubc.ca/~awll/nbody_methods.html</a></p>Sebastien PARIShttp://www.mathworks.com/matlabcentral/profile/authors/870049-sebastien-parisMATLAB 7.9 (R2009b)falsetag:www.mathworks.com,2005:FileInfo/271212010-03-30T13:35:35Z2010-03-30T13:35:35ZStruct array conversionConvert in either direction between struct-array and structure of arrays<p>Usage: new = struct2struct(old)</p>
<p>If 'old' is a scalar struct containing arrays (each with the same number of rows, N) then 'new' will be an N-by-1 struct-array whose fields have a single row.</p>
<p>If 'old' is an N-by-1 struct-array whose fields have a single row (e.g. as returned above) then 'new' will be a scalar structure whose fields have N rows.</p>
<p>Either representation can have advantages for representing basic spreadsheet or database information.</p>
<p>A struct of arrays allows fields to be added and removed more easily and eases computation of filtering or sorting indices.
<br />(A struct of arrays is also the format returned from csv2struct.)</p>
<p>A struct-array makes it easier to apply filtering and sorting operations using the computed indices/indicators.</p>Ged Ridgwayhttp://www.mathworks.com/matlabcentral/profile/authors/458680-ged-ridgwayMATLAB 7.1.0 (R14SP3)26106falsetag:www.mathworks.com,2005:FileInfo/178972007-12-05T13:36:23Z2007-12-06T08:04:03ZAccess a MySQL database(with mym.m)<p>The submission collects several small utilities 'wrapping' Yannick Maret's 'mym' Matlab/MySQL interface, available from </p>
<p><a href="http://sourceforge.net/projects/mym">http://sourceforge.net/projects/mym</a> </p>
<p>Their application is illustrated by script mydemo.m, which uses the FEX download data presented in FEX submission 'A week on File Exchange'. First, we read the data (6 mixed-type columns, over 1 million rows) from a text file into a MySQL table, using 'load infile', passed through the basic mym interface. Next, we retrieve the table's structure and contents into Matlab workspace using TBATTR and TBREAD, and take the data back to MySQL with TBWRITE. </p>
<p>We observe that text-file-mediated exchange, accommodated on MySQL's side by 'load infile' and 'select into outfile', is a vastly superior option for large datasets; TBREAD and TBWRITE (the latter operating through multiple-row 'insert values' flushes) are more convenient for small datasets with many columns.</p>Dimitri Shvorobhttp://www.mathworks.com/matlabcentral/profile/authors/870050-dimitri-shvorobMATLAB 7.2 (R2006a)mym Matlab/MySQL interface86639549120271306917718false