I am trying to do a 3D plot where I would plot the x and y coordinates over time, but when I try to use the plot3 command, it says all of the data needs to be numeric values.
Therefore, I am trying to take out the 'sec' shown in the first column when I import my data, but am having no luck.
I tried using
>> sscanf(data, '%f')
Error Message: First argument must be a string scalar or character vector.
I tried
>> num2str(data)
Error Message: Input to num2str must be numeric.
and I tried a few other ones which I realize wasn't even going to do what I expect it to do.
댓글 수: 3
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/518647-how-to-take-out-units-in-a-column#comment_829763
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/518647-how-to-take-out-units-in-a-column#comment_829763
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/518647-how-to-take-out-units-in-a-column#comment_829784
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/518647-how-to-take-out-units-in-a-column#comment_829784
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/518647-how-to-take-out-units-in-a-column#comment_829789
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/518647-how-to-take-out-units-in-a-column#comment_829789
댓글을 달려면 로그인하십시오.