From: mat001 on 23 Feb 2010 07:41 can some one help me to understand this Name Size Bytes Class Attributes A 1x4x2 64 double B 1x4x2 64 double C 5x2x6 480 double D 3x2x6 288 double E = A+B+C+D its comes with error why the error is? and how I can check the problem and how to solve this Thanks
From: Oleg Komarov on 23 Feb 2010 07:48 "mat001 " <priya.biomath(a)gmail.com> wrote in message <hm0id0$966$1(a)fred.mathworks.com>... > can some one help me to understand this > > Name Size Bytes Class Attributes > > A 1x4x2 64 double > > B 1x4x2 64 double > > C 5x2x6 480 double > > D 3x2x6 288 double > > > E = A+B+C+D > > its comes with error > why the error is? and how I can check the problem and how to solve this > > Thanks In the subject you talk about vertcat while in the example you're summing stuff...state precisely what you want to obtain. Oleg
From: Wayne King on 23 Feb 2010 07:56 "mat001 " <priya.biomath(a)gmail.com> wrote in message <hm0id0$966$1(a)fred.mathworks.com>... > can some one help me to understand this > > Name Size Bytes Class Attributes > > A 1x4x2 64 double > > B 1x4x2 64 double > > C 5x2x6 480 double > > D 3x2x6 288 double > > > E = A+B+C+D > > its comes with error > why the error is? and how I can check the problem and how to solve this > > Thanks Hi, are you really trying to add these arrays as you suggest with E = A+B+C+D ? I'm asking because your post has "vertcat error" in the subject line, but you should be getting an array dimension mismatch error. Wayne
From: mat001 on 23 Feb 2010 08:07 Actually the matlab says the error is on line where I am adding all. May be its coming from somewhere else. I do not know how to play with matrix yet. I need practice i think. Anyway Thanks for ur attention.
From: Oleg Komarov on 23 Feb 2010 08:53 "mat001 " <priya.biomath(a)gmail.com> wrote in message <hm0jtm$gul$1(a)fred.mathworks.com>... > Actually the matlab says the error is on line where I am adding all. > > May be its coming from somewhere else. I do not know how to play with matrix yet. > > > I need practice i think. > > Anyway Thanks for ur attention. You may find useful the getting started guide: http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/bqr_2pl.html In general you can't do: [1,2] + [1,2,3] because it operates element-wise. You can gain flexibility with bsxfun to have 1+1 1+2 1+3 2+1 2+2 2+3 Oleg
|
Next
|
Last
Pages: 1 2 Prev: solving modified rayleigh plesset equation Next: Need help to run this programmmm |