Extract string form cell for sprintf
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a string saved in a cell on excel, that I need to put onto my GUI using sprintf, but it says sprintf doesn't accept cell inputs, is there a way of extracting it from the cell and turning it into a string please? Thanks
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2016년 7월 21일
편집: Azzi Abdelmalek
2016년 7월 21일
Example
a={'abc'}
use
sprintf([a{1} '%d'],5)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!