* PSPP is free and works extremely fast, so if you can't implement this in SPSS just download it. This tool lets you import mixed data, and generate a script so that could be done automatically the next time.įor the opposite direction (Matlab to SPSS) take a look at these submissions to File Exchange: csv file, that you can import to Matlab either by xlsread or by using the import tool: uiimport(your_resulted_CSV_file_with_full_path.csv) % replace the path below with the path for SPSS:Ĭommand = In Matlab, write the following: sps_file_name = 'full_path\spss2csv.sps' Save this file (let's say it's called spss2csv.sps). Write CELLS=VALUES if you want the numeric value and not the lables. outfile = 'your_resulted_CSV_file_with_full_path.csv' Start by writing a script file for SPSS (the following is for PSPP, but should be very similar to SPSS): GET FILE = 'your_SPSS_file_with_full_path.sav' The idea is simple - do what you describe in the question, but in an automated manner. I found a solution for PSPP*, that might be good for SPSS as well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |