Export data from MATLAB to SPSS
21 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
It is the first time that I try to use a function to export data. I have to save lots of numerical variables (around 200) calculated by MATLAB in SPSS. I searched on Math Work and found the following link:
As, I am not sure if I have to use the function in the body of the program or no, first, I run the program ( Vahid_Cut_Markers_According_Force.m). Then I tried to test the save4spss(names, vars, tilt) by exporting only one variable to SPSS and I used the following line in the command window:
save4spss(Vahid_Cut_Markers_According_Force,'AUC_LR',{Surface Under Curve})
but I received the following message:
Attempt to execute SCRIPT Vahid_Cut_Markers_According_Force as a function:
C:\Users\Vahid\Documents\MATLAB\Vahid_Cut_Markers_According_Force.m.
Then I used the function in the body of the program and I received the same result:
Attempt to execute SCRIPT Vahid_Cut_Markers_According_Force as a function:
C:\Users\Vahid\Documents\MATLAB\Vahid_Cut_Markers_According_Force.m
Error in Vahid_Cut_Markers_According_Force (line 3367)
save4spss(Vahid_Cut_Markers_According_Force,'AUC_LR',{Surface Under Curve})
Would you please assist me to find a solution? Also, I am wondering if I have to add the name of all 200 variables in ' ' part in the command?
Thank you so much,
Vahid,
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Entering Commands in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!