search for: fwhm2

Displaying 2 results from an estimated 2 matches for "fwhm2".

Did you mean: fwhm
2005 Feb 15
1
matlab norm(h) command in R: sqrt(sum(h^2)) - use in an expression
...type = 'l') # however this yields an error h <- h/sqrt(sum(h^2)) Error in h^2 : non-numeric argument to binary operator what shall I do to get the matlab: h = h/norm(h) implemented in R? thanks for a hint christoph ---- # parameters peak1 <- 5.4 fwhm1 <- 5.2 peak2 <- 10.8 fwhm2 <- 7.35 dip <- 0.35 b1 <- 0.9 # dispersion b2 <- 0.9 #dispersion a1 <- peak1/b1 a2 <- peak2/b2 d1 <- a1*b1 d2 <- a2*b2 c <- dip
2005 Feb 15
0
matlab norm(h) command in R: sqrt(sum(h^2)) - use in an e xpression
...> Error in h^2 : non-numeric argument to binary operator > > what shall I do to get the matlab: h = h/norm(h) implemented in R? > > thanks for a hint > > christoph > > > ---- > # parameters > peak1 <- 5.4 > fwhm1 <- 5.2 > peak2 <- 10.8 > fwhm2 <- 7.35 > dip <- 0.35 > > b1 <- 0.9 # dispersion > b2 <- 0.9 #dispersion > a1 <- peak1/b1 > a2 <- peak2/b2 > d1 <- a1*b1 > d2 <- a2*b2 > c <- dip > > ______________________________________________ > R-help at stat.math.ethz.ch mailing...