Prev: blood simscape
Next: neural network outputs
From: Nadine Cooper on 22 Apr 2010 14:32 Nevermind, I sussed it! z2(isnan(z2)) = 0; sorted. Silly woman I am :)
From: Bruno Luong on 22 Apr 2010 15:07 "Nadine Cooper" <f9071770(a)bournemouth.ac.uk> wrote in message <hqptmp$4j7$1(a)fred.mathworks.com>... > > %determine kg/m^2 -> mmHg > z2(1,1) = (((z2(1,1)*100)/0.0720)* 0.00750061505043) > z2(2,1) = (((z2(2,1)*100)/0.0720)* 0.00750061505043) > z2(3,1) = (((z2(3,1)*100)/0.0720)* 0.00750061505043) > z2(4,1) = (((z2(4,1)*100)/0.0720)* 0.00750061505043) > z2(5,1) = (((z2(5,1)*100)/0.0720)* 0.00750061505043) > z2(6,1) = (((z2(6,1)*100)/0.0720)* 0.00750061505043) > z2(7,1) = (((z2(7,1)*100)/0.0720)* 0.00750061505043) > z2(8,1) = (((z2(8,1)*100)/0.0720)* 0.00750061505043) > Do you really have to do it THAT way? Bruno
From: Nadine Cooper on 22 Apr 2010 15:25 "Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hqq6os$auj$1(a)fred.mathworks.com>... > "Nadine Cooper" <f9071770(a)bournemouth.ac.uk> wrote in message <hqptmp$4j7$1(a)fred.mathworks.com>... > > > > > %determine kg/m^2 -> mmHg > > z2(1,1) = (((z2(1,1)*100)/0.0720)* 0.00750061505043) > > z2(2,1) = (((z2(2,1)*100)/0.0720)* 0.00750061505043) > > z2(3,1) = (((z2(3,1)*100)/0.0720)* 0.00750061505043) > > z2(4,1) = (((z2(4,1)*100)/0.0720)* 0.00750061505043) > > z2(5,1) = (((z2(5,1)*100)/0.0720)* 0.00750061505043) > > z2(6,1) = (((z2(6,1)*100)/0.0720)* 0.00750061505043) > > z2(7,1) = (((z2(7,1)*100)/0.0720)* 0.00750061505043) > > z2(8,1) = (((z2(8,1)*100)/0.0720)* 0.00750061505043) > > > > Do you really have to do it THAT way? > > Bruno I'm a really, really awful programmer (as you can probably tell!) so for debugging I program in what I call "longhand" But I have shortened it to: % Convert from kg/m^2 to mmHg l = length(z2); i = 1; while i <= l z2(i) = (((z2(i)*100)/0.0720)* 0.00750061505043) i = i+1; end Is that better???????? lol I hate programming!! :)
From: Bruno Luong on 22 Apr 2010 17:27 "Nadine Cooper" <f9071770(a)bournemouth.ac.uk> wrote in message <hqq7qv$s18$1(a)fred.mathworks.com>... > > Is that better???????? lol Ah quantum leap, but you could also in a most natural way: z2 = z2*(100/0.0720 * 0.00750061505043) > > I hate programming!! :) You'll like it. Bruno
From: Nadine Cooper on 25 Apr 2010 18:48
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hqqevc$3h0$1(a)fred.mathworks.com>... > "Nadine Cooper" <f9071770(a)bournemouth.ac.uk> wrote in message <hqq7qv$s18$1(a)fred.mathworks.com>... > > > > Is that better???????? lol > > Ah quantum leap, but you could also in a most natural way: > > z2 = z2*(100/0.0720 * 0.00750061505043) > > > > > I hate programming!! :) > > You'll like it. > > Bruno I hang my head in shame! I'm going to bother you one last time Bruno, just because I'm curious: probability density function is f(x)= 1/(σ√(2π )) e(- ((x- μ)^2)/(2σ^2 )) which is what you're doing above - However, how does it work? I mean, so I've worked out that σ is 0.016, but why did you not include the sqrt2pi √(2π )? So a gaussian fit is done initially to set the peaks up, their "height" is how I think of it, with σ as 0.016, correlating to x values and adding the y values and then filling in those peaks with values in relation to A Can you do maths lectures???? I just want to fully understand the theory too, which I'm partly grasping because I'm pathetic! |