Effacer les filtres
Effacer les filtres

Export data from MATLAB to SPSS

17 vues (au cours des 30 derniers jours)
Vahid Esmaeili
Vahid Esmaeili le 29 Juil 2020
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,

Réponses (0)

Catégories

En savoir plus sur NaNs dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by