Oommfodt2matlab

バージョン 1.0.0.0 (3.24 KB) 作成者: Héctor Corte
Imports Oommf odt data files into Matlab
ダウンロード: 462
更新 2014/7/23

ライセンスの表示

This is a function to import odt files from oommf into Matlab arrays

Information stored in the odt file will be imported into the object "data" which will have this fields:
units: units of the columns stored
columns: variables stored in the columns
values: array with the numerical data

Example:
We have created with Oommf the archive test.odt (included on the zip). To open it into "data"

data=oommfodt2matlab('test.odt')

Now we can plot for instance a magnetic hysteresis loop.
Using this command we can plot M_x/M_s against B_x
plot(data.values(:,3),data.values(:,6))
xlabel([data.columns{3},' (',data.units{3},')']);
ylabel([data.columns{6},' (',data.units{6},')']);

For more examples, you can see my blog (look for Oommf, to be updated shortly):
http://thebrickinthesky.wordpress.com/

References:
[1] Oommf Micromagnetic simulator at NIST,
http://math.nist.gov/oommf/

This function was written by :
Héctor Corte
B.Sc. in physics 2010
M.Sc. in Complex physics systems 2012
Ph.D Student between NPL (National Physical Laboratory) and Royal Holloway University of London
London, United kingdom.
Email: leo_corte@yahoo.es

引用

Héctor Corte (2024). Oommfodt2matlab (https://www.mathworks.com/matlabcentral/fileexchange/47328-oommfodt2matlab), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2011b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersChemistry についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0