Hello guys
I am trying to implement cordic algo for finding the final coordinate after specified rotation on matlab using the below mentioned code but I am not getting the required result.Can anyone please suggest me way out??would be very thankful to you.
I think you are making a mistake regarding the index of the q vector. For i=0 you have written a separate code using the if statement (this corresponds to the 45 degree angle). When the loop is executed for i=1, the elseif part of the code will be executed but since you are using q(1), again the 45 degree angle will be used. You should have used q(2) in this iteration.