BENG 449 Problem 2 5 Script

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

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

View Full Document Right Arrow Icon
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
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 fl td GU, simulate and plat the curve given by % C - A t"b expf—s‘t1 far A - lfl, b - fl.5, : - fl.fl5 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 - fl and1 sigma - In. creating D E and plat the data paints D with the curve C. D - C + lfl * randnfl, lengtth11; hdld on; pldtft,D, 'Linefityle', 'ndne', ... 'Harker', 'd', ... 'HarkerFaseCdldr', 'k', ... 'HarkerEdgeCdldr', 'k', ... 'Harkerflize', 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 lflfl times as sure and save the values df 5 intd an array. % Campute the mean and standard deviatidn df the 100+ 5 values. repetitions - lflfl; clear 5_array; far i - lzrepetitidns 2F7FUE 3:23 PM HHTLHE Camumnd Windaw 2 of 2 --I-------------------------------------------------------------------------- D - C + 10 * randnfl, l:ngtth11; 5 - fl; 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.4fl95 Th: m:an valu: df 5 in lflfl r:p:titidn: i: GU43.U737 Th: standard d:viatidn df 5 in lflfl r:p:titidn: i: lfl32.3776 ...“ ...“ ...
View Full Document

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 Right Arrow Icon
Ask a homework question - tutors are online