Posts

Es werden Posts vom Mai, 2016 angezeigt.

Matlab: Optical composition

Bild
Optical composition with Matlab ( German ) This post is about the representation of optical compositions existing of lenses, mirror and other optics. Therefore I programmed a few functions which are described below ( MATLAB files ): opticlense(x,y,deg,thick,dx,dy,color) opticbeamsplitter(x,y,deg, thick,dx,dy,color) opticbikonvex( x,y,deg,thick,dx,dy,color)  opticdistance(x1,y1,x2,y2,string,len,thick,color) opticline(x,y,deg,len,thick,color) opticmirror(x,y,deg,style,thick,color,len) opticslit(x,y,deg,thick,color,len) Therefor x and y are the positions of the optical element. The optics are positioned scaled. deg is the angle of the inclination and dx , dy and len the length in x, y direction. color is the color and thick the thickness of the line. In opticdistance x1 , y1 are initial values and x2 , y2 the final valueswhere string stands for the name (for example the distance). In opticmirror style as the value 0 returns a normal mirror and for the value 1 a dashed