From: roya olyazadeh on 3 May 2010 08:35 "us " <us(a)neurol.unizh.ch> wrote in message <hrmfct$rhf$1(a)fred.mathworks.com>... > "roya olyazadeh" > > > This error occurred after running > > > > Too many inputs. > > > > Error in ==> secndcor at 13 > > v=cellfun(@(x) sscanf(x,tmpl{i,3}),s(ix),'uni',false); > > > > and one thing , file size is changeable. sometimes maybe 100 lines . sometimes they > > are not in order like this : > > D 1 2 122.286 0.002 > > A 1 2 5 35 17 32.00 3.0 > > C 1 1000.000000 1000.000000 ! > > D 1 3 190.522 0.002 > > C 4 878.926000 1021.071000 ! ! > > > > What is the solution ? > > which ML version do you have(?)... > can you upgrade(?)... > note: the order of your character tags does not matter... > > us I use matlab 7 I have another question.. Can you tell me how can I add string to a matrix. For this example I have this matrix : from=[1 ;2 ;4; 6; 7; 8 ] Now I want to add x to them so I have from=[x1;x2;x4;x6;x7;x8] when I add them, Matlab gave me answers in numbers not in string like this from=[x1;x2;x4;x6;x7;x8] tnx againt for your help.
From: dpb on 3 May 2010 09:08 roya olyazadeh wrote: .... > from=[1 ;2 ;4; 6; 7; 8 ] > Now I want to add x to them so I have from=[x1;x2;x4;x6;x7;x8] In general, one may not want to do this...see <http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F> --
From: us on 3 May 2010 15:02 "roya olyazadeh" > I use matlab 7 > I have another question.. Can you tell me how can I add string to a matrix. > For this example I have this matrix : 1) which version EXACTLY(!?)... help version; 2) do NOT start another thread within a thread... us
From: roya olyazadeh on 3 May 2010 21:08 "us " <us(a)neurol.unizh.ch> wrote in message <hrn6jt$fc1$1(a)fred.mathworks.com>... > "roya olyazadeh" > > I use matlab 7 > > I have another question.. Can you tell me how can I add string to a matrix. > > For this example I have this matrix : > > 1) which version EXACTLY(!?)... > > help version; > > 2) do NOT start another thread within a thread... > > us OK I fixed my first problem . Any way I think you dont want to help any more. I know how can I help matlab. there is no such thing for adding string to an integer matrix, tnx
From: roya olyazadeh on 3 May 2010 21:13
dpb <none(a)non.net> wrote in message <hrmi02$o4n$1(a)news.eternal-september.org>... > roya olyazadeh wrote: > ... > > > from=[1 ;2 ;4; 6; 7; 8 ] > > Now I want to add x to them so I have from=[x1;x2;x4;x6;x7;x8] > > In general, one may not want to do this...see > > <http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F> > > -- I read this . I dont want to creat index. please just tell me how can I add string to an integer matrix ????????????????? My project is comlicated I can not described it here. I need this matrix from=[x1;x2;x4;x6;x7;x8] after reading data.... tell me what is teh fuction for this? I searched in matlab help there is no suchthing. I mean I could not find it. |