tag:www.mathworks.com,2005:/matlabcentral/fileexchange/feedMATLAB Central File Exchangeicon.pnglogo.pngMATLAB Central - File ExchangeUser-contributed code library2015-04-01T02:34:29-04:00235201100tag:www.mathworks.com,2005:FileInfo/503602015-04-01T05:26:24Z2015-04-01T05:26:24Zlatexit(A, dp)Converts a (m \times n) matrix to LaTeX \bmatrix for quick TeX-ing!<p>An irritating problem is having to copy and paste a matrix from MATLAB to any LaTeX editor. I couldn't find a simple program which made the MATLAB format into a TeX-friendly format. I hope this tiny code helps solve that problem.</p>Ankush Chakrabartyhttp://www.mathworks.com/matlabcentral/profile/authors/3016761-ankush-chakrabartyMATLAB 8.3 (R2014a)falsetag:www.mathworks.com,2005:FileInfo/503592015-04-01T03:43:52Z2015-04-01T03:43:52ZMatlab Tetris Using AccelerometerA Matlab final project done for college<p>A full description on how this program works is in the main project.m file that accompanies the guide generated .fig file</p>Blochhttp://www.mathworks.com/matlabcentral/profile/authors/5720508-blochMATLAB 8.4 (R2014b)MATLABArduino board programmed to print to serial the g forces felt by a 3 axis analog accelerometer if you don't have this the code is portable enough to use any input (the movement is decided by numbers like 1 2 3 4 for left, right, twist, or speed up)falsetag:www.mathworks.com,2005:FileInfo/503582015-04-01T03:06:41Z2015-04-01T03:35:13ZTrajectory Generator Block using the Reflexxes Motion LibrarySimulink block for online trajectory generation using the Reflexxes Motion Library.<p>Simulink block for online trajectory generation using the Reflexxes Motion Library. The block provides instantaneous setpoint generation capabilities for example motion control systems. C++ code can be generated from the block using the Simulink Coder.</p>Ivo Houtzagerhttp://www.mathworks.com/matlabcentral/profile/authors/1121576-ivo-houtzagerMATLAB 8.0 (R2012b)Simulink CoderSimulinkRequires the download of the Reflexxes Motion Library Type II from http://reflexxes.com/products/overview-and-download.falsetag:www.mathworks.com,2005:FileInfo/503572015-03-31T22:20:24Z2015-04-01T02:10:40ZKinect Infrared (IR) and Depth Image SimulatorSimulation tool that generates noisy Kinect IR and depth images from a user inputted CAD model<p>This zip-file contains functions to simulate noisy Kinect infrared (IR) and depth images from a user inputted CAD model. </p>
<p>This work was motivated by an extensive study of the sensor's underlying mechanisms and performance characteristics, as well as newly constructed empirical models for the intensity, speckle, and detector noise of the received IR dot pattern. The simulator models the physics of the transmitter/receiver system, unique IR dot pattern, disparity/depth processing technology, and random intensity speckle and IR noise in the detectors. Our model accounts for important characteristics of Kinect's stereo triangulation system, including depth shadowing, IR dot splitting, spreading, and occlusions, correlation-based disparity estimation between windows of measured and reference IR images, and sub-pixel refinement.</p>
<p>The Kinect simulator functions require the CAD model to include vertex, facet, and facet normal arrays. The structure of the arrays must be:
<br /> vertex - 3xn, n vertices of each 3D coordinate that defines the CAD model.
<br /> face - 3xm, m facets, each represented by 3 vertices that defines the CAD model.
<br /> normalf - 3xm, m facets, representing the normal direction of each facet.
<br />Note, the single CAD model input could be an aggregate collection of multiple CAD models of interesting objects and background structures. I also provide the option to include a CAD model of a flat wall to function as the scene’s background.</p>
<p>Also included is a Matlab wrapper for OPCODE, which a collision detection or ray casting library for triangular 3D meshes. The wrapper was written by Vipin Vijayan, and can be found here:
<br /><a href="http://www.mathworks.com/matlabcentral/fileexchange/41504-ray-casting-for-deformable-triangular-3d-meshes/content/opcodemesh/matlab/opcodemesh.m">http://www.mathworks.com/matlabcentral/fileexchange/41504-ray-casting-for-deformable-triangular-3d-meshes/content/opcodemesh/matlab/opcodemesh.m</a></p>
<p>The original OPCODE was written by Pierre Terdiman, and can be found here:
<br /><a href="http://www.codercorner.com/Opcode.htm">http://www.codercorner.com/Opcode.htm</a></p>
<p>This code was used to simulate line-of-sight vectors emanating from the transmitter coordinate system, which in effect represent the IR laser system that transmits the dot pattern onto the given scene. An idealized binary representation of the Kinect dot pattern is used as default for the simulator, which was constructed by Andreas Reichinger, and can be found here:
<br /><a href="https://azttm.wordpress.com/2011/04/03/kinect-pattern-uncovered/">https://azttm.wordpress.com/2011/04/03/kinect-pattern-uncovered/</a></p>
<p>The downloadable package includes a demo to exhibit the functionality of the IR and depth image simulator options, which generates images of numerous CAD models (also included).</p>
<p>For a detailed description of how this simulator was developed, please refer to</p>
<p> M. J. Landau, B. Y. Choo, P. A. Beling, “Simulating Kinect Infrared and Depth Images,”
<br /> IEEE Transactions on Image Processing. 2015 (under submission).</p>
<p>If this simulator is used for publication, please cite this in your references.</p>Michael Landauhttp://www.mathworks.com/matlabcentral/profile/authors/1485560-michael-landauMATLAB 8.2 (R2013b)falsetag:www.mathworks.com,2005:FileInfo/503552015-03-31T20:21:22Z2015-03-31T21:39:54ZA rational approximation of the Voigt functionRapid and accurate computation of the Voigt function<p>This function file is a subroutine for rapid and accurate computation of the Voigt function. It covers the domain of practical interest 0 < x < 40,000 and 10^-4 < y < 10^2 required for applications using the HITRAN molecular spectroscopic database. The average accuracy in this domain is 10^-14. Use opt = 1 for more accurate and opt = 2 for more rapid computation. By default opt = 1.</p>Sanjar Abrarovhttp://www.mathworks.com/matlabcentral/profile/authors/5597508-sanjar-abrarovMATLAB 7.9 (R2009b)falsetag:www.mathworks.com,2005:FileInfo/229422009-02-10T11:12:47Z2015-03-31T21:33:09ZPhased Array Design Toolbox v2.5A toolbox allowing rapid definition and evaluation of 2D and 3D phased array antennas. <p>This is the abstract from my paper, included as documentation, in the zip file.
<br />Paper Titled : Phased Array Design Toolbox for MATLAB Theory of Operation
<br />ABSTRACT
<br />In recent years the advances in computer technology has led to increasing use of numerical techniques in the design and development of antennas and related technology. Of particular prevalence are full wave microwave solvers, used to obtain the current densities on and thereby radiated fields for arbitrary structures. However, despite the increases in computer power, array antennas can be electrically very large and therefore still represent a significant analysis problem. As the number of elements in the antenna array increases, its radiated characteristics tend to be dominated by the geometric layout and excitation of the component elements, rather than the elements themselves.
<br />Using simple mathematical models for the element radiation patterns, combined geometrically in the far field, the performance of large arrays can be calculated with reasonable accuracy for significantly less computational effort. A Matlab toolbox has been developed to enable rapid definition and analysis of 2D and 3D antenna arrays, comprising array elements such as dipole, microstrip patch, helix or any user defined element pattern function. This paper documents the theory used in the toolbox.
</p>Neill Tuckerhttp://www.mathworks.com/matlabcentral/profile/authors/1707959-neill-tuckerMATLAB 5.2 (R10)MATLABfalsetag:www.mathworks.com,2005:FileInfo/481422014-10-17T16:55:52Z2015-03-31T21:13:58ZApp DesignerPrototype environment being developed by MathWorks for building MATLAB user interfaces.<p>App Designer is a new environment for building user interfaces for MATLAB applications. App Designer includes a number of new features including:
<br /> * New interactive design environment
<br /> * New set of standard user interface components
<br /> * New gauge, knob, switch, and lamp components
<br /> * Built-in Editor integration
<br /> * New code format for apps
<br />Tech Previews provide advanced access to potential new product features. This gives you an opportunity to test out the functionality and provide feedback. As a Tech Preview, there may be functional limitations. Please refer to the App Designer documentation for details. Some features may change in future versions.
<br />To install the Tech Preview:
<br /> * You must have a version of MATLAB R2014b already installed.
<br /> * Download the submission (appdesigner.mlpkginstall)
<br /> * Double-click on appdesigner.mlpkginstall from either inside MATLAB or from your OS – you will be asked to login to your MathWorks account during the install process.
<br /> * When the install process is finished, you can run the Tech Preview by typing “appdesigner” at the MATLAB command line. Documentation can be accessed through the Help button in the App Designer toolstrip.</p>
<p>For more information on the App Designer Tech Preview see: <a href="http://www.mathworks.com/products/matlab/app-designer/tech-preview.html">http://www.mathworks.com/products/matlab/app-designer/tech-preview.html</a> </p>
<p>The .mlpkginstall file is functional for R2014b only.</p>MathWorks App Designer Teamhttp://www.mathworks.com/matlabcentral/profile/authors/5775824-mathworks-app-designer-teamMATLAB 8.4 (R2014b)MATLABWorks only with R2014b.falsetag:www.mathworks.com,2005:FileInfo/503562015-03-31T20:41:45Z2015-03-31T20:44:40ZInduction Motor with arbitrary reference frameThe reference frame speed (w) can be chosen as the user needs<p>Induction Motor with arbitrary reference frame,The reference frame speed (w) can be chosen as the user needs ,it can be zero ,synchronous speed ,rotor speed ,...etc.,The model was taken from "Paul C.Krause, Analysis of electric machinery and drive system, Second Edition",Chapter 4</p>Mohammad AWawdehhttp://www.mathworks.com/matlabcentral/profile/authors/6253004-mohammad-awawdehMATLAB 8.2 (R2013b)SimulinkMATLABfalsetag:www.mathworks.com,2005:FileInfo/503542015-03-31T18:32:58Z2015-03-31T18:32:58ZChebyshev to monomial basisChebyshev to monomial basis conversion<p>B = CHEB2MON(A) converts polynomial A given in Chebyshev basis to
<br />monomial basis B. The polynomial must be given with its coefficients in
<br />descending order, i.e. A = A_N*T_N(x) + ... + A_1*T_1(x) + A_0*T_0(x)
<br />Example:
<br /> Suppose we have a polynomial in Chebyshev basis:
<br /> a2*T_2(x) + a1*T_1(x) + a0*T_0(x), where T_0=1, T_1=x, T_2=2x^2-1
<br /> and for example a2=1, a1=0, a0=-1.
<br /> We want to express the polynomial in the monomial base {1,x,x^2), i.e.
<br /> a2*T_2(x) + a1*T_1(x) + a0*T_0(x) = b2*x^2 + b1*x + b0,
<br /> where b = [b2 b1 b0] is sought.
<br /> Solution:
<br /> a = [1 0 -1];
<br /> b = cheb2mon(a);</p>Zoltán Csátihttp://www.mathworks.com/matlabcentral/profile/authors/2924415-zoltan-csatiMATLAB 7.12 (R2011a)MATLABfalsetag:www.mathworks.com,2005:FileInfo/503532015-03-31T18:27:49Z2015-03-31T18:28:56ZMonomial to Chebyshev basisMonomial to Chebyshev basis conversion<p>A = MON2CHEB(B) converts polynomial B given in monomial basis to
<br />Chebyshev basis A. The polynomial must be given with its coefficients
<br />in descending order, i.e. B = B_N*x^N + ... + B_1*x + B_0
<br />Example:
<br /> Suppose we have a polynomial in the monomial basis:
<br /> b2*x^2 + b1*x + b0,
<br /> with b2=2, b1=0, b0=-2 for example.
<br /> We want to express the polynomial in the Chebyshev base
<br /> {T_0(x),T_1(x),T_2(x)}, where T_0=1, T_1=x, T_2=2x^2-1, i.e.
<br /> a2*T_2(x) + a1*T_1(x) + a0*T_0(x) = b2*x^2 + b1*x + b0,
<br /> where a = [a2 a1 a0] is sought.
<br /> Solution:
<br /> b = [2 0 -2];
<br /> a = mon2cheb(b);</p>Zoltán Csátihttp://www.mathworks.com/matlabcentral/profile/authors/2924415-zoltan-csatiMATLAB 7.12 (R2011a)MATLABfalse