Friday, September 30, 2011

If you need to cat array of cells horizontally :
cat(1,data{:})

Wednesday, September 28, 2011

3D pencil :

Another idea comes into my mind , using 2 color pencils could we create 3D pencil. Like in 3D cinema. You can wear glasses where one glass shows only green color and one shows red color. So Red and Greed pens will be stick together and the distance between two ink will be the function of depth (z). In this way people who watches the instructor will see the picture as 3D image. I have to show a picture to present better. It is later ...
Sorting objects according to their attribute (OOP) in MATLAB:

%Sort According to Slice location
[~ , ind ] = sort([dinfo.SliceLocation]);
dinfo = dinfo(ind);

Thursday, September 15, 2011

A web design system that I applied on my web page : AJAX + Google DOCS


In this web site , since I am updating my CV , contact etc information , I added google docs pages into right div. This way whole page is not required to be updated. But there are some funny features of this , I am able to open my web page again. But I think it is easier than updating and uploading file each time.

Wednesday, September 14, 2011

Fourier Machine:

When I am working on operating systems an idea come into my mind. We are using digital machines , especially von Neumann architecture. But human's are communicating with sounds , we can apply this for machines actually. Let represent sound 'a' with specified frequency for example 600 Hz. If we can store this frequency value in a memory we will be able to listen machine language. Than we can add or subtract two frequencies with using mixers , we can multiplex different circuits using analog multiplexers like in telephone line. This time our computer will be analog. We can ask this question do we need digital ? Digital may be easy but we can always make abstractions and make the interface easy. For example analog calculation core with digital interface is always possible. I am missing some points maybe, but it comes into my mind. We need analog frequency holder memories , multiplexers , mixers and may be ADC devices.

Friday, September 02, 2011

Fminunc

I presented fminsearch function , an alternative faster implementation of optimization function is fminunc(func,initial).

Here is an example from help :

x = fminunc(@(x) 5*x(1)^2 + x(2)^2,[5;1])

AI

Despite the benefits of AI we are starving for humanity.