figuresc(w,h) creates a normal figure except that figure size is adjusted by scaling factors for width and height, w and h. Scaling factors have a range of 0.0 <= X < 1.0, and are relative to screen size.
figuresc(s) makes width and height scaling factors both equal to s.
h = figuresc(...) returns a handle to the figure.
Demo code (and fun too!)
for x = 0.9:-0.1:0.1, figuresc(x), end
Windows Animation Example code shows you how to make animation in C .
Will produce a figure of an n bit Gray Code shaft encoder and a gray code table
Straightforward program. Gray code is produced by recursion and the disk is drawn using patch objects
Back Buffer code is an example of how to use back-buffer device contexts for on-screen animation. This is the basis for all graphical games.
This is a simple code to extract data from an existing matlab 2D or 3D figure.
The aim of this function is to create a tex-code picture of a Matlab figure in PSTricks syntax. The tex-file picture can still be adapted after creation and may be either a standalone tex-file or a file to be included in a larger document. The...
This Flash animation includes a HTML code generator that allows to change parameters without any knowledge of Flash and HTML programming.
This code helps you figure out your BMI! Can perform three calculations. Also has a built in quit function. NEW! now can figure up to 10 calculations! I also have a version with metric calculations.
Plot Any Four Bar Linkage configuration including: Double-Crank, Rocker-Crank, Double-Rocker and Change Point. Keep pressing on the ENTER key when prompted by the code. To better visualize the animation, make sure you can see both the command...
This function plot in the same figure the center trajectory and attitude of an aircraft. See the figure to understand better.
The version 3.0, extend the functionality of version 2.
In this last version :
- fixed the...
This file contains MATLAB code that can parse Simscape language files, extract the equations, and displays them in a format that is easy to read. The equations are converted to LaTeX format and then displayed in a MATLAB figure window.
See animation here:
This code is to make time-lapse movie with camera always directed to mounting. The movie was made with digital camera. I made ~200 photos while go walk. Each 20 steps I made 1 frame...
This is some simple code that stamps the current figure at the bottom. It is vital when handling and saving a large number of figures automatically.
It has been adapted for Linux as well as Windows.
Define your inputs and Keep pressing ENTER when prompted by this code. To better visualize this mechanism, make sure you can see both MATLAB command window and the figure on the screen at the same time.
The standard WAITBAR function (and the improved WAITBAR2 function, which this code is based on) must appear in their own figure windows, and cannot be embedded into a GUI. They also display incorrectly if the progress is reduced (e.g., when...
HWnd = GETHWND retrieves the current figure (gcf)'s underlying Windows handle, thus enabling integration of Matlab GUI in C/C++/C# programs.
HWnd = GETHWND(hFig) retrieves a specific figure's underlying Windows handle. hFig is a...
Creates an animation from any 2D or 3D figure directly to HTML. The animation is based on Mouseover image swapping and the result is:
*intutive and interactive: no need of control bars or buttons and there is no need for plugin or codec.
This Flash animation displays a bubblesfade effect. Includes an HTML code generator. Change parameters without any knowledge of Flash and HTML programming.
This Flash animation displays a 'slidezoom' effect. Includes an HTML code generator that allows change to the parameters without any knowledge of Flash and HTML programming.
This flash animation displays a stars 3D effect. The flash animation includes a HTML code generator that allows to change parameters without any knowledge of Flash and HTML programming.