SlideShare a Scribd company logo
%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

Juan matlab
Juan matlabJuan matlab
Pslb lab manual
Pslb lab manualPslb lab manual
Pslb lab manual
Vivek Kumar Sinha
 
Lab loop
Lab loopLab loop
Lab loop
Manode Boonpeng
 
C programs Set 2
C programs Set 2C programs Set 2
C programs Set 2
Koshy Geoji
 
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
Gyana Ranjan Mati
 
Anders Nielsen template model-builder
Anders Nielsen template model-builderAnders Nielsen template model-builder
Anders Nielsen template model-builder
David LeBauer
 
Anders Nielsen AD Model-Builder
Anders Nielsen AD Model-BuilderAnders Nielsen AD Model-Builder
Anders Nielsen AD Model-Builder
David LeBauer
 
Roots of a quadratic equation1
Roots of a quadratic equation1Roots of a quadratic equation1
Roots of a quadratic equation1
Wilson ak
 
Demodulate bpsk up
Demodulate bpsk upDemodulate bpsk up
Demodulate bpsk up
Huma Chaudhry
 
Activities on Software Development
Activities on Software DevelopmentActivities on Software Development
Activities on Software Development
Nicole Ynne Estabillo
 
Oral-2
Oral-2Oral-2
parallelizing Trapezoidal rule
parallelizing Trapezoidal rule parallelizing Trapezoidal rule
parallelizing Trapezoidal rule
zainab mohammed
 
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
Shiv Koppad
 
8.2
8.28.2
Matlab integration
Matlab integrationMatlab integration
Matlab integration
pramodkumar1804
 
Matlab bode diagram_instructions
Matlab bode diagram_instructionsMatlab bode diagram_instructions
Matlab bode diagram_instructions
Keihin de Mexico S.A. de C.V.
 

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.5
Oleg Nazarevych
 
презентиция для кафедры
презентиция для кафедрыпрезентиция для кафедры
презентиция для кафедры
NeverMora
 
Конкурс "Таланты среди нас"
Конкурс "Таланты среди нас"Конкурс "Таланты среди нас"
Desarrollo regional y territorio en sinaloa
Desarrollo regional y territorio en sinaloaDesarrollo regional y territorio en sinaloa
Desarrollo regional y territorio en sinaloa
Francisco Morales
 
xcom_results
xcom_resultsxcom_results
xcom_results
NeverMora
 
Red Red Ruby - Youngster UK
Red Red Ruby - Youngster UKRed Red Ruby - Youngster UK
Red Red Ruby - Youngster UK
MikeyHowe
 
автоматизация соноров в словах сложной звукослоговой структуры слова
автоматизация соноров в словах сложной звукослоговой структуры словаавтоматизация соноров в словах сложной звукослоговой структуры слова
автоматизация соноров в словах сложной звукослоговой структуры слова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 lab
C Programming labC Programming lab
C Programming lab
Vikram Nandini
 
C programming BY Mazedur
C programming BY MazedurC programming BY Mazedur
C programming BY Mazedur
Mazedurr rahman
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solution
Kuntal Bhowmick
 
Cpl
CplCpl
C lab programs
C lab programsC lab programs
C lab programs
Dr. Prashant Vats
 
C lab programs
C lab programsC lab programs
C lab programs
Dr. Prashant Vats
 
bask, bfsk, bpsk
bask, bfsk, bpskbask, bfsk, bpsk
bask, bfsk, bpsk
blzz2net
 
C faq pdf
C faq pdfC faq pdf
C faq pdf
DebiPanda
 
C programs
C programsC programs
C programs
Vikram Nandini
 
Revision1schema C programming
Revision1schema C programmingRevision1schema C programming
Revision1schema C programming
Kho コー。イエー。イエン
 
Progr3
Progr3Progr3
Progr3
SANTOSH RATH
 
week-3x
week-3xweek-3x
'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 ,ppt
AllNewTeach
 
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 c
BUBT
 
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
Sazzad Hossain, ITP, MBA, CSCA™
 
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 matlab
Shankar 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.pdf
aartechindia
 

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. draft
NeverMora
 
Билеты по философии Барбашиной Эвелины 2012
Билеты по философии Барбашиной Эвелины 2012Билеты по философии Барбашиной Эвелины 2012
Билеты по философии Барбашиной Эвелины 2012
NeverMora
 
diploma.RC
diploma.RCdiploma.RC
diploma.RC
NeverMora
 
презентиция для мнск(beta)
презентиция для мнск(beta)презентиция для мнск(beta)
презентиция для мнск(beta)NeverMora
 
заключение по Mmpi
заключение по Mmpiзаключение по Mmpi
заключение по Mmpi
NeverMora
 
результаты
результатырезультаты
результаты
NeverMora
 
презентиция для кафедры 2
презентиция для кафедры 2презентиция для кафедры 2
презентиция для кафедры 2
NeverMora
 

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

Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 

Recently uploaded (20)

Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 

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));