Simple Use of Strings
이전 댓글 표시
I am simply trying to get through a Tutorial online and am having a problem running a simple string. It is returning the error:Undefined function 'string' for input arguments of type 'char'.
I am typing: >> a = string('Hi how are you') Undefined function 'string' for input arguments of type 'char'.
This is my first time using MatLab. Do I have to engage this feature to use it? I am pretty sure I have it typed in correctly.
댓글 수: 3
Steven Lord
2018년 4월 4일
What release of MATLAB are you using? If you're not sure, look at the output of the ver function.
Phil Sibley
2018년 4월 4일
Different classes of data:
a = {...} % cell array
b = "..." % string
Some functions accept inputs arguments of different classes, some don't. It depends on the function.
By the way, the best place to start to learn MATLAB is here:
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!