Tuesday, October 30, 2012

Week Five Progress (SEM 2)

NOTICE:


MY ATTACHMENTS FOR THIS WEEK ARE STILL MISSING AS SOON AS THEY BEEN FOUNDED THE POST WILL BE UPDATED

SORRY

Thursday, October 25, 2012

Week Four Progress (SEM 2)

during this week I studied how to apply equation into MATLAB
I started with simple equation. In order to apply any equation to MATLAB we have to convert the equation to matrix form then
X+2Y=5
2X+Y=4














A*Z=B
Z=B/A




RESULT





Sunday, October 7, 2012

Week Three Progress (SEM 2)

I continue mastering the MATLAB:) during this week as well . In this week I focused on the commands of plotting 2D graph and the basic commands of plotting 3D graph


  • Firstly, I learnt how to make 2D plot by using the command 
    • plot(independent variable, dependent variable, ' the property')



  • Then I went through the properties of plotting (colour and line tribe); there are many properties for graph drawing such 'k' for black colour line and '*' for drawing star line.


Example



The Result






  • Then I learnt how to make the graph grid --> by adding 'grid' command after the 'plot' command

  • Then I went through and I understood the 'hold on, hold off and close all' commands
    • hold on & hold off --> to show the last figure or not
    • close off --> to close any figure was opened



  • After that I learnt about 'subplot' command and the different between 'subplot' and 'plotsubplot(number of rows, number of column, the number of the matrix which occupy the figure)


Example for subplot




The Result






  • Then I learnt how to name or label the graph Axis's and title the graph
    • For labeling X Axis we use the command --> xlabel('The of the axis')
    • For labeling Y Axis we use the command --> xlabel('The of the axis')
    • For titling the graph we use the command --> title('The Title of the graph')


Example for Label and Title the Graph



The Result





  • Actually, I went through many related to 2D plotting and I won't be able to mention them all, but I can tell before I ended this post; one the most significant which I learnt during this week that I learnt the basic command of plotting 3D graph
    • The most important two commands in plotting 3D are 'meshgrid' and 'mesh' (which work as plot command in 2D)


Here an Example for 3D Plotting




 The Result



Friday, September 21, 2012

Week Two Progress (SEM 2)

In this week I continued learning about MATLAB and MATLAB's commands

I learnt about
  • matrices 
    • I learnt what the function of comma (,) semicolon (;) space and []
    • Also I learnt how to make commands of addition, subtraction, multiplication, division, exponentiation in matrices
    • Also i learnt the function of other commands such as " min(), max(), prob(), sum(), size(), diag()" and so on



  • Also I studied about M-File and significant of commands like "clc & clear"

  • Also I  knew some important commands like:
    • linspace
    • "linspace(minimum number, maximum number, number of points in between)"



    • randint
    • "randint(number of rows,number of columns,[minimum number,maximum number])"



    • input "input('')"
    • In input we should know about string and character
    • string=a character or word
    • character=a number or group of numbers
    • In order to change from string to character or from chatracter to string "num2str & str2num" 


  • On this week also I had started learning about 2D Plotting in martices
    • Two things we should know when we cross the 2D plotting
    • Dependent Variable    = variable dendening on other value
    • Independent Variable  = its value doesn't on other values



    • example

clc
clear
X=0:0.1:10
Y=sin(x)
polt(X,Y)


    • In this examples 

X is the Independent Variable
Y is the Dependent Variable

Monday, September 10, 2012

Week One Progress (SEM 2)

I started with programming part i was focusing on learn and practice the fundamental of MATLAB. On the week one:

  • I explored about MATLAB command window, workspace, array editor and command history.
  • Then I started to practice simple mathmetical operation commands such as addition, subtraction, multiplication, division, exponentiation square root (+, -, *, /, ^, sqrt).
  • Then I learnt how to address the operation by using (%) command . 
  • After that I discovered what predefined variables (pi, Inf, NaN, i, j) stands for.
  • Also I learnt how to cancel an input command and the output without deleting by using (clear) command.
  • Then enter trigonometric functions commands (sin, cos, tan, sec, csc, cot).
  • Then the inverse trigonometric function commands (asin, acos, atan, asec, acsc, acot) wich usually used in 2D Plotting
  • After that I studied how to enter hyperbolic functions  using (sinh, cosh, tanh, sech, csch, coth) commands
  • Lastly  for week one I learnt how command inverse trigonometric functions (asinh, acosh, asech, acsch, acoth)

Friday, May 4, 2012

The Progress until Now

Located which arteries we going to examine the blood flow inside it >>> Upper Limb Arteries

Figured which utrasound device would be used in scanning the upper limb arteries blood flow and pressure >>> Doppler Ultrasound


Finded Which equations & methods will be used in order to convert the blood flow data into MATLAB language >>> The Navier-Stokes equations, Finite Difference Method, and Numerical Scheme.

WHY & WHY!!!

WHY Blood Flow? - not arteries-

  •  Blood circulation is essential for body. Every cell in the body needs to received oxygen and nutrients. Blood rich in oxygen is sent to the body organs, tissues and cells to nourish them, and the waste products that result are disposed of through the same system.  Simply the body cannot function well without a strong circulatory system.
  • Lack of studies which has been dedicated directly to examine the effect of smoking to the blood flow.

WHY Upper Limb Arteries?

If we look into the arterial system (refer to picture below) we can see that the best place to examine the blood flow is the arteries of upper limb for these reasons:
  • Near to heart so we can see the blood speed and the blood pressure defferences easily.
  • Near to surface (skin) so we can scan it easily and accurately.
  • Branched into to terminal arteries so it is provide us enhancement of reading.


WHY Doppler Ultrasound?


Any regular ultrasounds uses sound waves to produce images, but non of them can show blood flow. Doppler the only one which can measure our blood flow and blood pressure.


WHY MATLAB Simulation?


Becuase MATLAB very familiar and popular engineering field. In 2004, MATLAB had around one million users across industry and academia. MATLAB users come from various backgrounds of engineering, science, and economics. MATLAB is widely used in academic and research institutions as well as industrial enterprises.