Import and plot Gromacs .xvg data files

버전 2.0 (4.13 KB) 작성자: Michael Holmboe
These two functions imports and plots the type of .xvg files that the MD package Gromacs uses for some of its text-based data output.
다운로드 수: 449
업데이트 날짜: 2019/3/18

라이선스 보기

These two functions imports and plots the type of .xvg files that the MD package Gromacs uses for some of its text-based data output. The functions tries to read the names/labels of the plotted data columns, as well as the axis-labels. Examples on how-to import and plot can be found in the functions. Note that Data is the default name for the output data for both functions. The import_xvg function imports the Data, and is itself called by the plot_xvg function. Note that with this function you can also set the x/y-ranges of the plot.

Examples on how to import Data (and plot it)
Data = import_xvg('filename.xvg')
Data = import_xvg('filename.xvg','plot')

Examples on how to plot (and import Data)
plot_xvg('energy.xvg')
Data = plot_xvg('energy.xvg',[1 5 3]) % Will plot the 5th and 3rd column vs. the 1st one.
Data = plot_xvg('energy.xvg',[1 5 3],[0 200]) % Will also set the X-axis to be between 0 and 200
Data = plot_xvg('energy.xvg',[1 5 3],[0 200],[0 1.5]) % Will also set the Y-axis to be between 0 and 1.5

인용 양식

Michael Holmboe (2024). Import and plot Gromacs .xvg data files (https://www.mathworks.com/matlabcentral/fileexchange/70607-import-and-plot-gromacs-xvg-data-files), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Graphics Objects에 대해 자세히 알아보기
도움

받음: atom

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
2.0