%Draw a square of area 1 on the ground, then inscribe a circle within it. %Now, scatter some small objects (for example, grains of rice or sand) throughout the square. %If the objects are scattered uniformly, then the proportion of objects within the circle vs objects within the square should be approximately ?/4, %which is the ratio of the circle's area to the square's area. %Thus, if we count the number of objects in the...
Draw a path moving horizontally and vertically that passes through each open square. The blue runner will always run straight, as far as possible, stopping only when blocked.
The m-files in this directory are used to create a draw-program-like interface for dealing with MATLAB graphs. When you type 'matdraw' at the MATLAB prompt, they will create a palette with some standard draw tools and a suite of menus with a...
These files draw pictures of quasi-crystal based structures. TRIGART Create an artistic drawing made of interlocking polygons. TRIGTILE Create a tile figure made of interlocking polygons. Written for MATLAB 5.x
"Hungarian algorithm" to solve the square assignment problem (original & pure MATLAB implementation). The Hungarian algorithm can also be used as a sub-solver in a B&B solver for the travelling salesman problem.
How to...
A MATLAB function used for generating pulses of various kinds including: gaussian, square, triangle, monocycle, biexponential, mexican hat, sinc, double sinc, sinc squared, sweep, and raised cosine. Inputs control the length, sampling frequency,...
First keep in mind that this is not a MATLAB tutorial. This is just a list of tricks I have found useful while writing my toolboxes available on the MATLAB Central repository.
You can e-mail me if you have corrections about these pieces...
Because MATLAB doesn't provide a built-in function to plot bars with any error adjustments, this script will draw vertical bars and display an error marker for each bar.
For an advanced user, this function also provides ways to modify...
There you find some procedures to generate some patterned structures with pore/interpore distances:
*gnanonet -for hexagonal structures with circular pores *gsquarenet -for square structures
There is also a...
This is another "spy"-function which, instead of MATLAB's spy function draws each element in a matrix as a square, which makes it much easier to see where each element in the matrix is located. The syntax is: SPY(M[,COLOR]).
Retrieve stock data from Yahoo and draw the rolling frontier 3D graph of the defined stocks during the defined date range. Can't get COP's stock data correctly when I tried, not sure whether Yahoo's or Matlab's falt. b is the begin date. e is the...
Polar Draw Component is a complete draw solution that comes with an arsenal of powerful drawing features enabling you to build Visio-style charts from within your application. Also allows you to create flow charts, vector drawings, raster images...
The integer square root function, or isqrt, is equivalent to floor(sqrt(x)) for non-negative x. For small x, the most convenient way to calculate isqrt is by calling int(x**0.5) or int(math.sqrt(x)), but if x is a large enough integer, the sqrt...
This code, when passed a MATLAB structure, will recursively go into it and print out the form of the struct.
VIDEO TUTORIAL: Serial communication (TX and RX) using SERIAL Matlab function. For Bluetooth and RS-232 devices applications. (Narration in Spanish).
Virtual Signal Generator is a GUI that produces (1) periodic functions (including sinusoidal, triangle, sawtooth, and square waves) of varying amplitudes, frequencies, and phases; (2) square pulse trains of varying amplitudes, frequencies, phases,...
If you need to access a remote machine from your Matlab session (for near-real time data transfer etc...) this set of functions allows you to programmatically send a single command and obtain the return values as a cell array.
Added...
This file is for begainers, who wanted to learn the MATLAB in short duration of time.
The attached zip file contains the slides, MATLAB M-files, and Simulink models that were used in the Fixed-Point Programming in MATLAB webinar from December 8, 2005 by Tom Bryan. The recorded webinar is linked off of the Fixed-Point Toolbox web page
A GENERALAZED CONVOLUTION COMPUTING CODE IN MATLAB WITHOUT USING MATLAB BUILTIN FUNCTION conv(x,h) |