Thread: Error in a line

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    57
    Rep Power
    0

    Error in a line


    Hi people. I have en error translating a function from Matlab to C/C++ :
    Code:
    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:

    Code:
    radius[rows/2][cols/2]=1;

    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?

    Comments on this post

    • salem disagrees : unrepentant cross-poster http://cboard.cprogramming.com/cplusplus-programming/157968-error-matlab-c-just-one-line-code.html
    Last edited by residentelvio; July 1st, 2013 at 01:44 PM.

IMN logo majestic logo threadwatch logo seochat tools logo