File Exchange

image thumbnail

Matlab2Gwyddion

version 1.1.0.0 (538 KB) by Jens Brauer
Save Matlab data from SPM/AFM scans for use with Gwyddion

1 Download

Updated 16 Apr 2016

View License on GitHub

What is Gwyddion?
"Gwyddion is a modular program for SPM (scanning probe microscopy) data visualization and analysis. Primarily it is intended for analysis of height fields obtained by scanning probe microscopy techniques (AFM, MFM, STM, SNOM/NSOM) " (http://gwyddion.net/)
saveasgsf saves a NxM Matrix in the Gwyddion Simple Field file format (.gsf) (one Channel only)

saveasgwy saves a NxM or NxMxL Matrix in the Gwyddion native file format (.gwy)

Function call:
saveasgsf(filename,data,numstepsx,numstepsy,startx,endx,starty,endy,label,unit,time,varargin)
or
saveasgwy(filename,data,numstepsx,numstepsy,startx,endx,starty,endy,label,unit,time,varargin)

Examples:
saveasgsf('test.gsf',rand(30,200),200,30,1,2,3,4,'Chan1','V',now);
saveasgsf('test.gsf',rand(30,200),200,30;
saveasgwy('test.gwy',rand(30,200,2),200,30,1,2,3,4,{'test1','test2'},{'V','m'},now);

Want to help to improve the code?
=> https://github.com/jensb89/Matlab2Gwyddion

Comments and Ratings (1)

very good

Updates

1.1.0.0

Linked to Github

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor