I have the following code in a matlab script:
if(strcmp(data.task,'taskToDo')) AnalogOut(1, CurrentTime) end
I want to integrate this code into a .cpp, which I already have, which is used to compile into a .mex file.
What would be an easy way to do this in .mex style?
Update
From Shai's answer , I realized that strcmp will work in a .cpp file. So I just need to change the code a bit to make it work:
if (!strcmp(data.task,"taskToDo"))
Pretty simple.
source share