Q:

Find out how to pass a vector of integers to int2str or real numbers to num2str

0

Find out how to pass a vector of integers to int2str or real numbers to num2str. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> 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

total answers (1)

Similar questions


need a help?


find thousands of online teachers now