- What type of database is it?
- What is the variable type in the database?
- Is that data all from one column, or from 5 columns?
- What is the query you used?
i have data in database in this format 1,2,3,4,5. and when it fetch it through query it returns [1x9 char]
조회 수: 1 (최근 30일)
이전 댓글 표시
how can i convert it into original data.
댓글 수: 2
the cyclist
2013년 7월 31일
It is very difficult to help you with more details. Remember, the only things we know about your problem are what you tell us.
Here are some of the things that would help to know:
채택된 답변
the cyclist
2013년 7월 31일
It seems that in the database, is the variable XTermination of type "character".
If so, then MATLAB is simply reading that character string in, and that is the original data.
For this simple case, you might be able to convert it as follows:
numberList = str2num(curs.Data)
댓글 수: 2
the cyclist
2013년 7월 31일
For the sake of future users seeking similar answers, please accept the answer, then.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!