Export data from MATLAB to SPSS

조회 수: 18 (최근 30일)
Vahid Esmaeili
Vahid Esmaeili 2020년 7월 29일
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개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by