HOW USING FUNCTIONS IF-ELSE, SWITCH-CASE, FOR, WHILE IN MATLAB.
this generator flattens nested containers such as
<code> l=( (1,23), [[[[42,(5,23)]]]])</code>
<code> for i in flatten(l): print i</code>
gives you 1,23,42,5,23
Returns false when code is executing in MATLAB or another MATLAB variant.
This recipe will let you embed GIF images inside of your source code
for use in Tkinter buttons, labels, etc. It's really handy for making
toolbars, etc. without worrying about having the right icon files
A simple example for beginners in MATLAB to solve the differential eq using built in functions of differential equation solvers.
Copy the files in the workspace
dxdt.m contains differential equation
These are the code examples used in the "What's New for Object-Oriented Programming in MATLABdlT«" webinar, which described the new object oriented features in Release 2008a.
To use the code, add the top folder to your path....
Example code from "Handling Large Data Sets Efficiently in MATLAB " webinar (http://www.mathworks.com/company/events/we.../wbnr30435.html) describing strategies for handling large amounts of data in MATLAB and avoiding...
Most of the kdtree code for matlab has been implemented via mex files. I decided to come up with a purely matlab based implementation and so here it is .... The code is obviously expected to be slower than some of the c/c++ implementations that...
A GENERALAZED CONVOLUTION COMPUTING CODE IN MATLAB WITHOUT USING MATLAB BUILTIN FUNCTION conv(x,h)
This webinar focuses on strategies and techniques for handling large amounts of data in MATLAB, including:
d-deD? Understanding memory and its constraints
d-deD? Maximizing system resources
d-deD? Minimizing your memory...
This is the code for calculating solid angle C, surface pressure ps, and field pressure pf coming out from a pulsating cylinder with radius of r and normal velocity vn in an unbounded two dimensional acoustic domain using the solution of Helmholtz...
This code, when passed a MATLAB structure, will recursively go into it and print out the form of the struct.
Enough debate has been devoted from time to time to the luck of "go to" in Matlab.
Ourselves being somewhat devoted followers of structured programming, we rarely use
it in our FORTRAN applications...
This script shows how C# functions/classes and forms (gui) can be used in Matlab.
The zip contains:
- a example c# class (ComMatlab.cs) with different inputs and outputs functions.
- a info_ComMatlab.txt with the commands how...
Explain why we use fftshift(fft(fftshift(x))) in Matlab instead of fft(x). An example is given. The example and Matlab codes are partially copied from Daniele Disco d-de?s work in "A guide to the Fast Fourier Transform, 2nd Edition".
IMPLEMENTATION OF GAUSS SEIDEL METHOD IN MATLAB used in the load flow problem
Provides an example Server / Client written in MATLAB that utilises the ability to call Java inline to perform message communication using TCP/IP.
Importantly it does not require any pre-compiled DLLs or force you to compile some MEX...
These are the M-files that accompany the webinar titled "New Statistics Tools in MATLAB and the Statistics Toolbox." View the recorded webinar here:
This webinar goes through 2...
A script containing the methods used to develop a principal components analysis in MATLAB is presented. The results are analyzed and plotted in different ways in order to interpret the information. The script is presented in Spanish and English....
The script is a good demo technique to show how complex numeric data can be exported and imported in MATLAB