need to convert a cell into a vector number
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello everyone,
I need to convert a 1*1 cell into a vector array, below an example:
from this :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/983155/image.png)
to this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/983160/image.png)
Which is the easiest way to do it?
Thank you so much in advcance! :)
댓글 수: 3
채택된 답변
Stephen23
2022년 4월 29일
C = {'80,47,109,44,104,40'} % why is this in a scalar cell array?
V = sscanf(C{:},'%f,',[1,Inf])
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!