MATLAB: Error “Undefined function ‘atan2’ for input arguments of type cell”

atan

I want to calculate ATAN(X,Y) where X=data(:,2); and Y=data(:,3); from a CSV file. The output of X is 1801X1 cell and Y is 1801X1 cell. please let me know how to convert the values of X and Y to calculate ATAN

Best Answer

RotAngle = data{2};
Bx = data{4};
Bz = data{5};