BENG 449 Problem 2 5 Script

# BENG 449 Problem 2 5 Script - EITIUE 5:23 PM HHTLHE Cdsuund...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EITIUE 5:23 PM HHTLHE Cdsuund Window 1 GE 2 -IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...-I-I-I-I-I-I-I-I-I-I- ...“ ...“ % EEHG ii? -- Frdhlem Set 1, Guestidn 5 % Written by Alex Lemnn dispf[' '|1: % Pd: t ranging frdm ﬂ td GU, simulate and plat the curve given by % C - A t"b expf—s‘t1 far A - lﬂ, b - ﬂ.5, : - ﬂ.ﬂ5 t_min - U; t_maI - GU; delta_t - l; t - t_min:delta_t:t_max; C - H * t."h .* expf—E * t1; pldtft, C, 'Cdldr', 'k', ... 'LineHidth', 31; % Add Gaussian ndise ta : with fmu - ﬂ and1 sigma - In. creating D E and plat the data paints D with the curve C. D - C + lﬂ * randnfl, lengtth11; hdld on; pldtft,D, 'Lineﬁtyle', 'ndne', ... 'Harker', 'd', ... 'HarkerFaseCdldr', 'k', ... 'HarkerEdgeCdldr', 'k', ... 'Harkerﬂize', 31; titlef'EENG 449 —— Frdblem Set 2, Question 5'1; Elahelf'Time fs1'1; ylahelf'Cft1, D[t|'1; legendf'Cft1', 'D[t|'1; hdld dff; % Campute the sum df the squares df the differences between C and D 5 - 0; far i - lzlengtth1 5 - 5 + foi1 - Cfi11"1; end dispf['The E—value far the graphed C and D data is ', ... numlstrf51|1f % Repeat this lﬂﬂ times as sure and save the values df 5 intd an array. % Campute the mean and standard deviatidn df the 100+ 5 values. repetitions - lﬂﬂ; clear 5_array; far i - lzrepetitidns 2F7FUE 3:23 PM HHTLHE Camumnd Windaw 2 of 2 --I-------------------------------------------------------------------------- D - C + 10 * randnfl, l:ngtth11; 5 - ﬂ; far j - 1:1:ngtth1 5 - 5 + foj1 - ij11"1; :nd 5_arrayfi1 - 5: :nd di:pf['Th: m:an valu: df 5 in ', numl:trfr:p:titidn:1, ... r:p:titidn: i: , numl:trfm:anf5_array11I1; di:pf['Th: standard d:viatidn df 5 in ', numl:trfr:p:titidn5]. ... r:p:titidn: i: , numl:trf:tdf5_array11|1; Th: E—valu: far th: graph:d C and D data is 7131.4ﬂ95 Th: m:an valu: df 5 in lﬂﬂ r:p:titidn: i: GU43.U737 Th: standard d:viatidn df 5 in lﬂﬂ r:p:titidn: i: lﬂ32.3776 ...“ ...“ ...
View Full Document

## This note was uploaded on 07/19/2008 for the course BENG 449 taught by Professor Richardcarson during the Spring '08 term at Yale.

### Page1 / 2

BENG 449 Problem 2 5 Script - EITIUE 5:23 PM HHTLHE Cdsuund...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online