what is wrong in this code msitrt = table(repeated_patientid, repeated_daysinceoperation, diff, rt, acc 'variablenames',{'patient', 'days since operation', 'difficulty', 'response time', 'accuracy'}); in matlab

The provided code has a syntax error. You are missing a comma after the variable acc in the table constructor. Here is the corrected code:

main.m
msitrt = table(repeated_patientid, repeated_daysinceoperation, diff, rt, acc, 'variablenames',{'patient', 'days since operation', 'difficulty', 'response time', 'accuracy'});
175 chars
2 lines

Make sure to include the comma after acc to separate it from the 'variablenames' input.

related categories

gistlibby LogSnag