SlideShare a Scribd company logo
1 of 2
%consts
vtransverse=590;
%origin
gamma=1;

%experimental data
load('C:Program FilesMatlabdatadata1Bb.dat');
load('C:Program FilesMatlabdatadata1rb.dat');
load('C:Program FilesMatlabdatadata1R.dat');
time=clock;starttime=(60*time(5)+time(6));

dr=0.001;%new advanced bracket
r = 0:dr:R;
n=(R/dr)+1;
root1=zeros(1,n);
root2=zeros(1,n);
M=10; %max degree of fitted polynom B

Bint=interp1(rb,Bb,r,'spline');
B=polyfit(r,Bint,M); %It ain't a simple MASSIVE
A=zeros(1,M+2);
for i=1:1:M+1
A(i)=B(i)/(M-i+3);
end
A(M+2)=0;

C=zeros(1,M+3);
for i=1:1:M+1
    C(i)=gamma*A(i);
end
C(M+2)=-1;


%Solving the first kind equation (root1)
for i=1:1:n
    rcur=r(i);
    Acur=polyval(A,rcur);
    const=rcur*(gamma*Acur+1);
    C(M+3)=-const;
    preroot=roots(C);
    for j=1:1:numel(preroot)
        if ((real(preroot(j))>0) && (real(preroot(j))<R) &&
(imag(preroot(j))==0))
            root1(i)=preroot(j);
        end
    end
    if (root1(i)==0)
        root1(i)=R;
    end
end

%Solving the second kind equation (root2)
for i=1:1:n
    rcur=r(i);
    Acur=polyval(A,rcur);
    const=rcur*(gamma*Acur-1);
    C(M+3)=-const;
    preroot=roots(C);
for j=1:1:numel(preroot)
        if ((real(preroot(j))>0) && (real(preroot(j))<R) &&
(imag(preroot(j))==0) && (real(preroot(j))>r(i)))
            if (root2(i)<real(preroot(j)))
                root2(i)=preroot(j);
            end
        end
    end
    if (root2(i)==0)
        root2(i)=r(i);
    end
end


time=clock;endtime=60*time(5)+time(6);
figure(5);plot(r,root1,'bluex',r,root2,'redx');grid on;title(num2str(endtime-
starttime));

More Related Content

What's hot

What's hot (16)

Juan matlab
Juan matlabJuan matlab
Juan matlab
 
Pslb lab manual
Pslb lab manualPslb lab manual
Pslb lab manual
 
Lab loop
Lab loopLab loop
Lab loop
 
C programs Set 2
C programs Set 2C programs Set 2
C programs Set 2
 
matlab code for channel estimation for ofdm
matlab code for channel estimation for ofdmmatlab code for channel estimation for ofdm
matlab code for channel estimation for ofdm
 
Anders Nielsen template model-builder
Anders Nielsen template model-builderAnders Nielsen template model-builder
Anders Nielsen template model-builder
 
Anders Nielsen AD Model-Builder
Anders Nielsen AD Model-BuilderAnders Nielsen AD Model-Builder
Anders Nielsen AD Model-Builder
 
Roots of a quadratic equation1
Roots of a quadratic equation1Roots of a quadratic equation1
Roots of a quadratic equation1
 
Demodulate bpsk up
Demodulate bpsk upDemodulate bpsk up
Demodulate bpsk up
 
Activities on Software Development
Activities on Software DevelopmentActivities on Software Development
Activities on Software Development
 
Oral-2
Oral-2Oral-2
Oral-2
 
parallelizing Trapezoidal rule
parallelizing Trapezoidal rule parallelizing Trapezoidal rule
parallelizing Trapezoidal rule
 
BIometrics- plotting DET and EER curve using Matlab
BIometrics- plotting DET and EER curve using MatlabBIometrics- plotting DET and EER curve using Matlab
BIometrics- plotting DET and EER curve using Matlab
 
8.2
8.28.2
8.2
 
Matlab integration
Matlab integrationMatlab integration
Matlab integration
 
Matlab bode diagram_instructions
Matlab bode diagram_instructionsMatlab bode diagram_instructions
Matlab bode diagram_instructions
 

Viewers also liked

Ustar Hpc Day 2009 (R2 Highlights And Netbooting) Rus Draft0.5
Ustar Hpc Day 2009 (R2 Highlights And Netbooting) Rus Draft0.5Ustar Hpc Day 2009 (R2 Highlights And Netbooting) Rus Draft0.5
Ustar Hpc Day 2009 (R2 Highlights And Netbooting) Rus Draft0.5Oleg Nazarevych
 
презентиция для кафедры
презентиция для кафедрыпрезентиция для кафедры
презентиция для кафедрыNeverMora
 
Desarrollo regional y territorio en sinaloa
Desarrollo regional y territorio en sinaloaDesarrollo regional y territorio en sinaloa
Desarrollo regional y territorio en sinaloaFrancisco Morales
 
xcom_results
xcom_resultsxcom_results
xcom_resultsNeverMora
 
Red Red Ruby - Youngster UK
Red Red Ruby - Youngster UKRed Red Ruby - Youngster UK
Red Red Ruby - Youngster UKMikeyHowe
 
автоматизация соноров в словах сложной звукослоговой структуры слова
автоматизация соноров в словах сложной звукослоговой структуры словаавтоматизация соноров в словах сложной звукослоговой структуры слова
автоматизация соноров в словах сложной звукослоговой структуры словаEkaterina
 
Развивающее обучение: сотрудничество учителя и ученика
Развивающее обучение: сотрудничество учителя и ученикаРазвивающее обучение: сотрудничество учителя и ученика
Развивающее обучение: сотрудничество учителя и ученикаEkaterina
 

Viewers also liked (11)

Ustar Hpc Day 2009 (R2 Highlights And Netbooting) Rus Draft0.5
Ustar Hpc Day 2009 (R2 Highlights And Netbooting) Rus Draft0.5Ustar Hpc Day 2009 (R2 Highlights And Netbooting) Rus Draft0.5
Ustar Hpc Day 2009 (R2 Highlights And Netbooting) Rus Draft0.5
 
2
22
2
 
презентиция для кафедры
презентиция для кафедрыпрезентиция для кафедры
презентиция для кафедры
 
стриптиз
стриптизстриптиз
стриптиз
 
Конкурс "Таланты среди нас"
Конкурс "Таланты среди нас"Конкурс "Таланты среди нас"
Конкурс "Таланты среди нас"
 
Urok 24
Urok 24Urok 24
Urok 24
 
Desarrollo regional y territorio en sinaloa
Desarrollo regional y territorio en sinaloaDesarrollo regional y territorio en sinaloa
Desarrollo regional y territorio en sinaloa
 
xcom_results
xcom_resultsxcom_results
xcom_results
 
Red Red Ruby - Youngster UK
Red Red Ruby - Youngster UKRed Red Ruby - Youngster UK
Red Red Ruby - Youngster UK
 
автоматизация соноров в словах сложной звукослоговой структуры слова
автоматизация соноров в словах сложной звукослоговой структуры словаавтоматизация соноров в словах сложной звукослоговой структуры слова
автоматизация соноров в словах сложной звукослоговой структуры слова
 
Развивающее обучение: сотрудничество учителя и ученика
Развивающее обучение: сотрудничество учителя и ученикаРазвивающее обучение: сотрудничество учителя и ученика
Развивающее обучение: сотрудничество учителя и ученика
 

Similar to Newconceptdataanalyze

C programming BY Mazedur
C programming BY MazedurC programming BY Mazedur
C programming BY MazedurMazedurr rahman
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solutionKuntal Bhowmick
 
bask, bfsk, bpsk
bask, bfsk, bpskbask, bfsk, bpsk
bask, bfsk, bpskblzz2net
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)Ashishchinu
 
Mathematics Function in C ,ppt
Mathematics Function in C ,pptMathematics Function in C ,ppt
Mathematics Function in C ,pptAllNewTeach
 
C - programming - Ankit Kumar Singh
C - programming - Ankit Kumar Singh C - programming - Ankit Kumar Singh
C - programming - Ankit Kumar Singh AnkitSinghRajput35
 
Chapter 5 Balagurusamy Programming ANSI in c
Chapter 5 Balagurusamy Programming ANSI  in cChapter 5 Balagurusamy Programming ANSI  in c
Chapter 5 Balagurusamy Programming ANSI in cBUBT
 
Critical buckling load geometric nonlinearity analysis of springs with rigid ...
Critical buckling load geometric nonlinearity analysis of springs with rigid ...Critical buckling load geometric nonlinearity analysis of springs with rigid ...
Critical buckling load geometric nonlinearity analysis of springs with rigid ...Salar Delavar Qashqai
 
Computer Architecture and Organization lab with matlab
Computer Architecture and Organization lab with matlabComputer Architecture and Organization lab with matlab
Computer Architecture and Organization lab with matlabShankar Gangaju
 
Incorporate the SOR method in the multigridTest-m and apply the multig.pdf
Incorporate the SOR method in the multigridTest-m and apply the multig.pdfIncorporate the SOR method in the multigridTest-m and apply the multig.pdf
Incorporate the SOR method in the multigridTest-m and apply the multig.pdfaartechindia
 

Similar to Newconceptdataanalyze (20)

C Programming lab
C Programming labC Programming lab
C Programming lab
 
C programming BY Mazedur
C programming BY MazedurC programming BY Mazedur
C programming BY Mazedur
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solution
 
Cpl
CplCpl
Cpl
 
C lab programs
C lab programsC lab programs
C lab programs
 
C lab programs
C lab programsC lab programs
C lab programs
 
bask, bfsk, bpsk
bask, bfsk, bpskbask, bfsk, bpsk
bask, bfsk, bpsk
 
C faq pdf
C faq pdfC faq pdf
C faq pdf
 
C programs
C programsC programs
C programs
 
Revision1schema C programming
Revision1schema C programmingRevision1schema C programming
Revision1schema C programming
 
Progr3
Progr3Progr3
Progr3
 
week-3x
week-3xweek-3x
week-3x
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)
 
Mathematics Function in C ,ppt
Mathematics Function in C ,pptMathematics Function in C ,ppt
Mathematics Function in C ,ppt
 
C - programming - Ankit Kumar Singh
C - programming - Ankit Kumar Singh C - programming - Ankit Kumar Singh
C - programming - Ankit Kumar Singh
 
Chapter 5 Balagurusamy Programming ANSI in c
Chapter 5 Balagurusamy Programming ANSI  in cChapter 5 Balagurusamy Programming ANSI  in c
Chapter 5 Balagurusamy Programming ANSI in c
 
C Programming Exam problems & Solution by sazzad hossain
C Programming Exam problems & Solution by sazzad hossainC Programming Exam problems & Solution by sazzad hossain
C Programming Exam problems & Solution by sazzad hossain
 
Critical buckling load geometric nonlinearity analysis of springs with rigid ...
Critical buckling load geometric nonlinearity analysis of springs with rigid ...Critical buckling load geometric nonlinearity analysis of springs with rigid ...
Critical buckling load geometric nonlinearity analysis of springs with rigid ...
 
Computer Architecture and Organization lab with matlab
Computer Architecture and Organization lab with matlabComputer Architecture and Organization lab with matlab
Computer Architecture and Organization lab with matlab
 
Incorporate the SOR method in the multigridTest-m and apply the multig.pdf
Incorporate the SOR method in the multigridTest-m and apply the multig.pdfIncorporate the SOR method in the multigridTest-m and apply the multig.pdf
Incorporate the SOR method in the multigridTest-m and apply the multig.pdf
 

More from NeverMora

палкин реферат к аспирантуре pref
палкин реферат к аспирантуре prefпалкин реферат к аспирантуре pref
палкин реферат к аспирантуре prefNeverMora
 
audition wrutings. draft
audition wrutings. draftaudition wrutings. draft
audition wrutings. draftNeverMora
 
Билеты по философии Барбашиной Эвелины 2012
Билеты по философии Барбашиной Эвелины 2012Билеты по философии Барбашиной Эвелины 2012
Билеты по философии Барбашиной Эвелины 2012NeverMora
 
презентиция для мнск(beta)
презентиция для мнск(beta)презентиция для мнск(beta)
презентиция для мнск(beta)NeverMora
 
заключение по Mmpi
заключение по Mmpiзаключение по Mmpi
заключение по MmpiNeverMora
 
результаты
результатырезультаты
результатыNeverMora
 
презентиция для кафедры 2
презентиция для кафедры 2презентиция для кафедры 2
презентиция для кафедры 2NeverMora
 

More from NeverMora (8)

палкин реферат к аспирантуре pref
палкин реферат к аспирантуре prefпалкин реферат к аспирантуре pref
палкин реферат к аспирантуре pref
 
audition wrutings. draft
audition wrutings. draftaudition wrutings. draft
audition wrutings. draft
 
Билеты по философии Барбашиной Эвелины 2012
Билеты по философии Барбашиной Эвелины 2012Билеты по философии Барбашиной Эвелины 2012
Билеты по философии Барбашиной Эвелины 2012
 
diploma.RC
diploma.RCdiploma.RC
diploma.RC
 
презентиция для мнск(beta)
презентиция для мнск(beta)презентиция для мнск(beta)
презентиция для мнск(beta)
 
заключение по Mmpi
заключение по Mmpiзаключение по Mmpi
заключение по Mmpi
 
результаты
результатырезультаты
результаты
 
презентиция для кафедры 2
презентиция для кафедры 2презентиция для кафедры 2
презентиция для кафедры 2
 

Recently uploaded

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 

Recently uploaded (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 

Newconceptdataanalyze

  • 1. %consts vtransverse=590; %origin gamma=1; %experimental data load('C:Program FilesMatlabdatadata1Bb.dat'); load('C:Program FilesMatlabdatadata1rb.dat'); load('C:Program FilesMatlabdatadata1R.dat'); time=clock;starttime=(60*time(5)+time(6)); dr=0.001;%new advanced bracket r = 0:dr:R; n=(R/dr)+1; root1=zeros(1,n); root2=zeros(1,n); M=10; %max degree of fitted polynom B Bint=interp1(rb,Bb,r,'spline'); B=polyfit(r,Bint,M); %It ain't a simple MASSIVE A=zeros(1,M+2); for i=1:1:M+1 A(i)=B(i)/(M-i+3); end A(M+2)=0; C=zeros(1,M+3); for i=1:1:M+1 C(i)=gamma*A(i); end C(M+2)=-1; %Solving the first kind equation (root1) for i=1:1:n rcur=r(i); Acur=polyval(A,rcur); const=rcur*(gamma*Acur+1); C(M+3)=-const; preroot=roots(C); for j=1:1:numel(preroot) if ((real(preroot(j))>0) && (real(preroot(j))<R) && (imag(preroot(j))==0)) root1(i)=preroot(j); end end if (root1(i)==0) root1(i)=R; end end %Solving the second kind equation (root2) for i=1:1:n rcur=r(i); Acur=polyval(A,rcur); const=rcur*(gamma*Acur-1); C(M+3)=-const; preroot=roots(C);
  • 2. for j=1:1:numel(preroot) if ((real(preroot(j))>0) && (real(preroot(j))<R) && (imag(preroot(j))==0) && (real(preroot(j))>r(i))) if (root2(i)<real(preroot(j))) root2(i)=preroot(j); end end end if (root2(i)==0) root2(i)=r(i); end end time=clock;endtime=60*time(5)+time(6); figure(5);plot(r,root1,'bluex',r,root2,'redx');grid on;title(num2str(endtime- starttime));