Jumat, 31 Oktober 2008

Solution of Linear Equation System with Cramer Method

Actually to get solution of Linear Equation System, we can do it very easy with Matlab. But, remember if in the past we studied Crammer Method for this. Crammer method given in below :
From that method we can arrange an algorithm :
One : input A and B matrix.

Two : We must know dimension of matrix, because matrix A mus be square and matrix B is one column matrix that sum of row equal to matrix A.

Three : We also must know determinat matrix, because matrix A is not singular.
Four : Find matrix A1 until An, and determinat it self.




Rabu, 24 September 2008

Add Cancel Button to a Waitbar

We can add property that indicated a cancel button and a function that be executed if cancel button be select/click.
The source and output gave in above:


Jumat, 27 Juni 2008

Make a Wait Bar with Matlab

In one case, we need a wait bar to know how much process that run. We can make a wait bar to indicate process. In Matlab we use WAITBAR instruction that have syntax above:
H = WAITBAR(X,'title', property, value, property, value, ...)
creates and displays a waitbar of fractional length X. The handle to the waitbar figure is returned in H. X should be between 0 and 1. Optional arguments property and value allow to set corresponding waitbar figure properties. Property can also be an action keyword 'CreateCancelBtn', in which case a cancel button will be added to the figure, and the passed value string will be executed upon clicking on the cancel button or the close figure button (taken from MATLAB HELP)
Example :