Stokes Polarization

版本 0.5.0 (8.0 KB) 作者: Ivan Lopushenko
MATLAB class to extract parameters of polarized light from Stokes vector measurements
45.0 次下载
更新时间 2024/3/31

查看许可证

This is a small app to compute and visualize parameters of either fully or partially polarized light from the supplied Stokes vector.
Intented usage: evaluation of all common parameters of polarized light (like degrees of polarization, intensity values, Wolf's coherency matrix, azimuth, ellipticity and axes of the polarization ellipse) from Stokes vector, assuming that any other information (e.g., field complex vector) is not available. With this assumption, usage of the MATLAB Phased Array System toolbox can be either unconvenient, or not always possible.
Provided code allows to plot intensity-dependent polarization ellipse for each supplied Stokes vector, as well as to depict polarization state normalized to the intensity of the fully polarized part on the Poincaré sphere.
Input data: can be either single beam with polarization state defined as [I,Q,U,V] row or column vector, or several beams defined as matrix with N specified polarization states:
All input parameters must have one unit system (user-defined).
It is not necessary to make an instance of the class in order to use it. Main functions are available as element-wise static methods of the class, so if you need to e.g. compute only azimuth of the polarization ellipse, you can call
psi = StokesVectorSet.evaluateAzimuth(S1,S2);
and obtain it. For the full list of static methods, please refer to the source code.
Compatibility: both example and class files have been tested in MATLAB R2021b. Some earlier versions of MATLAB (below R2016b, for the current implementation of the class) do not support serialization to tables. All other functionality is available (if not, please let me know).
WebAssembly version: this code has been compiled to run in web browser with MATLAB Coder and Emscripten, and is available as online tool. More information, including short overview of theory, is also available in the online tool.
References: all equations within code are enumerated with respect to
M. Born and E. Wolf. Principles of Optics, 6th Edition. Pergamon Press (1980).

引用格式

Ivan Lopushenko (2026). Stokes Polarization (https://ww2.mathworks.cn/matlabcentral/fileexchange/162151-stokes-polarization), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2021b
与 R2016b 及更高版本兼容
平台兼容性
Windows macOS Linux
版本 已发布 发行说明
0.5.0