Export data from MATLAB to SPSS
21 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!