export data to spss / pasw
Version 1.1.0.0 (2.15 KB) by
Jesse van Muijden
An example of how to successfully export data including variable names to spss.
This example only works with numerical data but can easily be adapted for other data formats. I did not get Robert Schleicher's script to work. The ui did not respond and data was not saved correctly. The latter may be related to the use of periods versus commas.
In addition, this script automatically opens spss and the syntax. So you only need to click on 'run mfile' in matlab and run > all in the automatically opened syntax window of spss.
Cite As
Jesse van Muijden (2026). export data to spss / pasw (https://www.mathworks.com/matlabcentral/fileexchange/29442-export-data-to-spss-pasw), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Workspace Variables and MAT Files in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
