Question: Write a MATLAB Scrip to answer the question: Calculate the 1st and 2nd derivatives of compound A using a 5-point, 2nd-order Savitzky-Golay filter. Plot the
Write a MATLAB Scrip to answer the question:
Calculate the 1st and 2nd derivatives of compound A using a 5-point, 2nd-order Savitzky-Golay filter. Plot the raw spectrum of A as well as the derivatives on the same graph. Compare both the 1st and 2nd derivatives and discuss their appearance in terms of the number and position of the peaks.
Data Values for A:
0.891000000000000 0.939378450704635 0.973503943662440 0.993627464789025 1 0.992872535210975 0.972496056337560 0.939121549295365 0.893000000000000 0.834475158451466 0.764261830987321 0.683167588029516 0.592000000000000 0.492851830983163 0.392956619713156 0.300833098586571 0.225000000000000 0.171680017615884 0.137911690160057 0.118437517624201 0.108000000000000 0.102099973553302 0.0992716196466183 0.0988074559166254 0.100000000000000 0.102232588170908 0.105251831253470 0.108895158709297 0.113000000000000 0.117422798763067 0.122096055339501 0.126971284246185 0.132000000000000 0.137216841776825 0.142988947388526 0.149766579305963 0.158000000000000 0.167975459129633 0.179323155106397 0.191509273529962 0.204000000000000 0.216443821704644 0.229218432185888 0.242883826574187 0.258000000000000 0.274968004051791 0.293553116150053 0.313361670173289 0.334000000000000 0.355152912088194 0.376819103213900 0.399075742732657 0.422000000000000 0.445639097595435 0.469920470994345 0.494741608896083 0.520000000000000 0.545556322530066 0.571124012808718 0.596379696683011 0.621000000000000 0.644729362284301 0.667583477770782 0.689645854371871 0.711000000000000 0.731651228332730 0.751292076108155 0.769536885829503 0.786000000000000 0.800353224384779 0.812498217796597 0.822394102310117 0.830000000000000 0.835295249128153 0.838340052705455 0.839214829930030 0.838000000000000 0.834684529102609 0.828891571381582 0.820152827969764 0.808000000000000 0.792107259461412 0.772718661768219 0.750220733190916 0.725000000000000 0.697464558051745 0.668108781545544 0.637448614266572 0.606000000000000 0.574190758331609 0.542096212049604 0.509703559742797 0.477000000000000 0.443959908621819 0.410506370256039 0.376549646762240 0.342000000000000 0.306938357181115 0.272128306926239 0.238504103208244 0.207000000000000 0.178427287653722 0.153105402039004 0.131230815404784 0.113000000000000 0.0984774922039970 0.0872000849177450 0.0785726351726205 0.0720000000000000 0.0669439935302899 0.0630942582900160 0.0601973939047342 0.0580000000000000 0.0562777836748434 0.0549228819221908 0.0538565392084428 0.0530000000000000 0.0522886217703365 0.0517142140212207 0.0512826992614945 0.0510000000000000 0.0508646042438106 0.0508452619929264 0.0509032887455790 0.0510000000000000 0.0510967112544210 0.0511547380070736 0.0511353957561894 0.0510000000000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
