Why does Matlab mex does not have a day type like scanf
1 view (last 30 days)
Here's my problem, I have a c++ code that I'm compiling in mex and so far it's doing great. But it's supposed to take different input from the user to perform different tasks. When it prompts the user to enter the input and canny recognize it. I've read on plenty website that mex doesn't have scanf and getchar. But I fount this example in the Matlab website with the reply and isempty function but that created more errors for me. Is there any other way.
Im using R2007b, and win64,window7.VS 2005.
The part I want to fix goes like this:
The code itself runs great in C
Walter Roberson on 23 Jan 2013
This technical note hints you should be able to use scanf() in R2007b: http://www.mathworks.com/support/solutions/en/data/1-1UP8NA/?solution=1-1UP8NA
This FEX contribution might help: http://www.mathworks.com/matlabcentral/fileexchange/30622-non-wait-detection-of-keyboard-input-including-mex-implementation