From: jason on 17 Mar 2010 16:21 On Mar 17, 4:08 pm, Haneen Farah <haneenfa...(a)gmail.com> wrote: > How do I convert a cell to double? > > Thanks cell2mat or accessing each variable will get the same solution ie R=<10,1> cell %or whatever it looks like i forget atm. for i=1:size(R,1) New_Vec(i,1)=R{i,1} end that should extract each value. cell2mat is faster but more error prone depending on how dense your structures can be. true naming your structures next time for easier manipulation. ie: R.name="My Vector" R.ts=[your matrix of doubles];
First
|
Prev
|
Pages: 1 2 Prev: calcualting velocity of object (s) in a video sequence. Next: Rate Limiter equivalent model? |