Friday, August 1, 2008

F.Session2

In my opinion the m-file which Sahar sent to me was not useful. You can download the file.
Section2 of MATLAB-Jahad was all about matrices, how to create them in a short way, algebraic and mathematic operations with matrices, deleting or choosing a special part of matrix or find arrays of matrix ,ex:find(a>5) will return all the arrays greater than 5 from matrix a.
I've designed an m-file(see it below) which converts double floating numbers to integers between 0-800, but when I plotted the histogram it wasn't very good, I think!

m-file:
data*1000;
ans+412;
round(ans);
hist(ans);

You can see the results in pictures below:(1.plot(ans) 2.hist(ans))

1.


2.



To do list for next session:
Continue studying MATLAB from section3.
Think on writing an m-file which can plot a better histogram.

No comments: