Code doesn't run.
이전 댓글 표시
s = "Matlab rocks";
fprintf (s(3));
Index exceeds the number of array elements. Index must not exceed 1.
Error (line 2)
fprintf (s(3));
답변 (1개)
s = "Matlab rocks";
fprintf ('%s\n',s);
댓글 수: 4
Kyara Christelle Riguerra
2022년 3월 24일
s = "Matlab rocks";
s{1}(3)
s = "Matlab rocks";
sc = char(s) ;
sc(3)
Kyara Christelle Riguerra
2022년 3월 24일
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!