char - Str to double in matlab -


I have a variable called x, where character As follows:

  123123213 343423434454545455 .... If I do:  
  X (1) = 1 x (1,1: 9) = 123123213  

When I write, I want to receive:

  x (1) = 123123213  

I tried to do this:

  s = [cellstrale (x)]; T = [str2double (s)];  

Then I found something like "T":

  ans = 1.0e + 020 * 1.1352 1.1006 1.0835 ....  << / P> 

If it helps by using matlab 7.12 . P>

Perhaps str2num:

  x = ['123123123'; '343423434'; '454545455'] x_num = str2num (x); X_num (1) ans = 123123123  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -