Find out how to pass a vector of integers to int2str or real numbers to num2str
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:7| Question number:32.7
All Answers
total answers (1)
>> intString = int2str(2:5)
intString =
2 3 4 5
>> length(intString)
ans =
10
>> str2num(intString(end-1:end))
ans =
5
>> realString = num2str([11.11 33.3])
realString =
11.11 33.3
need an explanation for this answer? contact us directly to get an explanation for this answer