please find the test file as suggested
error "Undefined function 'atan2' for input arguments of type cell"
조회 수: 6 (최근 30일)
이전 댓글 표시
Krishna Pradeep Gollamahanti
2016년 5월 30일
댓글: Krishna Pradeep Gollamahanti
2016년 5월 31일
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
채택된 답변
Walter Roberson
2016년 5월 31일
RotAngle = data{2};
Bx = data{4};
Bz = data{5};
댓글 수: 2
Walter Roberson
2016년 5월 31일
Sorry, I did not read your code properly.
What you want to do cannot be done. It is not possible to calculate the arctan of a string. But if you ever encounter a file that has numbers in columns then you could textscan using a numeric format and then use the method I showed.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Standard File Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!