Wednesday, May 13, 2009

Understand Flow Charts




Should I follow this chart and convert my lappy to FreeBSD?

- wong chee tat :)

Sunrise & Sunset Times for Singapore

Sunrise & Sunset Times for Singapore


Sunrise/Sunset For Singapore(hours and minutes in local time)


May 2009


June 2009

DAY

RISE

SET


RISE

SET

1

0657

1907


0657

1909

2

0657

1907


0657

1909

3

0657

1907


0657

1909

4

0657

1907


0658

1909

5

0657

1907


0658

1910

6

0657

1907


0658

1910

7

0657

1907


0658

1910

8

0656

1907


0658

1910

9

0656

1907


0658

1910

10

0656

1907


0659

1911

11

0656

1907


0659

1911

12

0656

1907


0659

1911

13

0656

1907


0659

1911

14

0656

1907


0659

1911

15

0656

1907


0700

1912

16

0656

1907


0700

1912

17

0656

1907


0700

1912

18

0656

1907


0700

1912

19

0656

1907


0700

1912

20

0656

1907


0701

1913

21

0656

1907


0701

1913

22

0656

1907


0701

1913

23

0656

1907


0701

1913

24

0656

1908


0701

1914

25

0656

1908


0702

1914

26

0656

1908


0702

1914

27

0657

1908


0702

1914

28

0657

1908


0702

1914

29

0657

1908


0703

1915

30

0657

1908


0703

1915

31

0657

1909


















































































































































- wong chee tat :)

Matlab Array Manipulation

  1. How to remove all elements greater than 5 from a vector.

    myVector = [10 0 0 1 12 3 0 0 4 5 1 12 0 0];

    %index contains indices of elements within myVector which are greater than 5
    index = find(myVector > 5);
    myVector(index) = []

    Alternatively, logical indexing can be used (and is more efficient)

    myVector(myVector > 5) = [];

This is one of the "tricks" or methods to manipulate the arrays using Matlab.


- wong chee tat :)

Project Updates / Status

Code fixed:

- Added newer field emitter models to study emission details

This is needed to understand different models and how each geometry affect emission

- Improved area calculation and current calculation.

Previous methods were slow and unreliable.

- Pre-allocation added for vectorization.

Optimization for fast computation.

- Fast transition voltage calculation.

Just added this code today. Determination of transition voltage was through graphical plots which are more error prone. A simpler and faster approach is used to compute transition voltage.

- Code cleanup

As above.


Wish List =)

Faster automated code testing



- wong chee tat :)