MATLAB: Convert a string of numbers to a number.

charintstr2num

Convert a string of numbers to a number without using str2num.

Best Answer

You can use the following code.
a=[1 2 3];
b=length(a);
c=(b-1):-1:0
d=10.^c;
y=a.*d;
It converts an array containing digits to a number.
Hope that helps.