The Medium class

Medium is a handle class.

Properties

Public properties

name

type

default

description

n0

double or char

refractive index or nature of the upper medium

nS0

double or char

refractive index or nature of the upper medium

Illumination

Illumination

Illumination of the microscope

Dependent properties

name

type

dependence

description

n

double

refractive index of the upper medium

nS

double

refractive index of the lower medium

lambda

double

= obj.Illumination.lambda;;

incident electric field

Constructor

Constructor

Synthax

% prototypes
Medium(n)
Medium(n, nS)
Medium(mat)
Medium(mat,matS)

% examples
Medium(1.5)
Medium(1.33, 1.5)
Medium('water','glass')
Medium('air','BK7')
Description

Medium(n) creates a Medium object representing a uniform medium of refractive index n.


Medium(n, nS) creates a Medium object representing a system composed of two semi-infinite media separated by a planar interface, the top one with a refractive index n and the bottom one with nS (S for substrate).


Instead of specifying the refractive indices, one can specify medium names. The known materials and the associated values are the following:

  • glass: 1.51

  • BK7: 1.51

  • water: 1.33

  • air: 1.0

Medium methods

display
Display the properties of the object.

Synthax

% prototype
ME.display()

Description

This method displays the properties of a Medium object in a nice way:

>> ME = Medium('water','glass');

   top mat: water
   sub mat: glass
   n      : 1.33
   nS     : 1.51