Discuss Error in a line in the C Programming forum on Dev Shed. Error in a line C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
Time spent in forums: 22 h 2 m 47 sec
Reputation Power: 0
Error in a line
Hi people. I have en error translating a function from Matlab to C/C++ :
radius(floor(rows/2+1),floor(cols/2+1)) = 1;
% Get rid of the 0 radius value at the 0
% frequency point (now at top-left corner)
% so that taking the log of the radius will
% not cause trouble.
What I did is:
I m sure it s there the problem, because before this line I can print what I want and I can see it at run-time, but after this line I can not print nothing and the work is like blocked. Do you know the error?
Last edited by residentelvio : July 1st, 2013 at 01:44 PM.