iostream/cout are c++, not c - so comment out/remove that #include line.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
Thanks.
Could you please add to my code a few lines which would print on screen or save the whole variables onto the HDD.
I mean, I would like to be able to see on screen e.g. row of variables from matrix or small matrices at each iteration of e.g. 'for' loop.
Best
Could you please add in my code a single lines displaying selected variables on the screen and maybe saving also these variables onto HDD.
Please see the lines in code with numbers: 62, 72, 78, 90, 97.
Thank you.
Could you please add in my code a single lines displaying selected variables on the screen and maybe saving also these variables onto HDD.
Please see the lines in code with numbers: 62, 72, 78, 90, 97.
Thank you.
1. line 62:
Code:
mxbinned = mxGetCell(prhs[0], m);
What is mxbinned ?
What is mxGetCell?
2. line 72:
Code:
P_total += P_vec[m];
both P_total and P_vec are integer arrays. So you should be able to see their content in any of the debug windows (auto, local, watch..., )
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.