SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Develop computer program in MATLAB that will have a calling program that calls a self-written
function to evaluate the function:
by its series. The calling program is to evaluate the function by an arithmetic statement. The
input argument to the self-written function is to be an element of the x vector which ranges from
-0.9 to +0.9 in steps of 0.1. The output of the self-written function is to go to the calling program
and is to be the values of f (x) at the input values. In the calling program create a table containing
x, f (x) by the arithmetic statement and f (x) by its series.
Plot f (x) vs. x.
Solution
Examples of simple MATLAB functions Herein we present an example of a simple function that
calculates the area of a trapezoidal cross-section in an open channel, given the bottom width, b,
the side slope z, and the flow depth y (see the figure below). + b 1 Y z T rapezoidal cross-section
function [A] = Area(b,y,z) %|---------------------------------------------| %| Calculation of the area of
a trapezoidal | %| open-channel cross-section. | %| | %| Variables used: | %| ===============
| %| b = bottom width (L) | %| y = flow depth (L) | %| z = side slope (zH:1V, dimensionless) | %|
A = area (L*L, optional in lhs) | %|---------------------------------------------| A = (b+z*y)*y;

Weitere ähnliche Inhalte

Ă„hnlich wie Develop computer program in MATLAB that will have a calling program .pdf

Signals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 BatchSignals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 BatchAmairullah Khan Lodhi
 
Mmc manual
Mmc manualMmc manual
Mmc manualUrvi Surat
 
PYTHON-PROGRAMMING-UNIT-II (1).pptx
PYTHON-PROGRAMMING-UNIT-II (1).pptxPYTHON-PROGRAMMING-UNIT-II (1).pptx
PYTHON-PROGRAMMING-UNIT-II (1).pptxgeorgejustymirobi1
 
Matlab practice
Matlab practiceMatlab practice
Matlab practiceZunAib Ali
 
Digital communication lab lectures
Digital communication lab  lecturesDigital communication lab  lectures
Digital communication lab lecturesmarwaeng
 
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxinfantsuk
 
MATLAB-Introd.ppt
MATLAB-Introd.pptMATLAB-Introd.ppt
MATLAB-Introd.pptkebeAman
 
A02
A02A02
A02lksoo
 
1. Ch_1 SL_1_Intro to Matlab.pptx
1. Ch_1 SL_1_Intro to Matlab.pptx1. Ch_1 SL_1_Intro to Matlab.pptx
1. Ch_1 SL_1_Intro to Matlab.pptxMOHAMMAD SAYDUL ALAM
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013amanabr
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Kurmendra Singh
 
1. Introduction.pptx
1. Introduction.pptx1. Introduction.pptx
1. Introduction.pptxSungaleliYuen
 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxmydrynan
 
Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Amairullah Khan Lodhi
 

Ă„hnlich wie Develop computer program in MATLAB that will have a calling program .pdf (20)

Signals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 BatchSignals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 Batch
 
Mmc manual
Mmc manualMmc manual
Mmc manual
 
Matlab1
Matlab1Matlab1
Matlab1
 
PYTHON-PROGRAMMING-UNIT-II (1).pptx
PYTHON-PROGRAMMING-UNIT-II (1).pptxPYTHON-PROGRAMMING-UNIT-II (1).pptx
PYTHON-PROGRAMMING-UNIT-II (1).pptx
 
Tutorial2
Tutorial2Tutorial2
Tutorial2
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Matlab practice
Matlab practiceMatlab practice
Matlab practice
 
Digital communication lab lectures
Digital communication lab  lecturesDigital communication lab  lectures
Digital communication lab lectures
 
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
 
MATLAB-Introd.ppt
MATLAB-Introd.pptMATLAB-Introd.ppt
MATLAB-Introd.ppt
 
A02
A02A02
A02
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
1. Ch_1 SL_1_Intro to Matlab.pptx
1. Ch_1 SL_1_Intro to Matlab.pptx1. Ch_1 SL_1_Intro to Matlab.pptx
1. Ch_1 SL_1_Intro to Matlab.pptx
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
1. Introduction.pptx
1. Introduction.pptx1. Introduction.pptx
1. Introduction.pptx
 
Mechanical Engineering Homework Help
Mechanical Engineering Homework HelpMechanical Engineering Homework Help
Mechanical Engineering Homework Help
 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
 
Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual
 

Mehr von khetre12

Differentiate ln( cose^2x)Solution Fir.pdf
Differentiate ln( cose^2x)Solution                     Fir.pdfDifferentiate ln( cose^2x)Solution                     Fir.pdf
Differentiate ln( cose^2x)Solution Fir.pdfkhetre12
 
Differentiate between Real-time OS and Single-userSingle-tasking OS.pdf
Differentiate between Real-time OS and Single-userSingle-tasking OS.pdfDifferentiate between Real-time OS and Single-userSingle-tasking OS.pdf
Differentiate between Real-time OS and Single-userSingle-tasking OS.pdfkhetre12
 
Differentiate between BYOD and Mobile Computing.SolutionBYOD .pdf
Differentiate between BYOD and Mobile Computing.SolutionBYOD .pdfDifferentiate between BYOD and Mobile Computing.SolutionBYOD .pdf
Differentiate between BYOD and Mobile Computing.SolutionBYOD .pdfkhetre12
 
Differential equations.The amount of money A in a bank account tha.pdf
Differential equations.The amount of money A in a bank account tha.pdfDifferential equations.The amount of money A in a bank account tha.pdf
Differential equations.The amount of money A in a bank account tha.pdfkhetre12
 
Differential EquationsA tree contains a known percentage p0 of a r.pdf
Differential EquationsA tree contains a known percentage p0 of a r.pdfDifferential EquationsA tree contains a known percentage p0 of a r.pdf
Differential EquationsA tree contains a known percentage p0 of a r.pdfkhetre12
 
Differential EquationShow step by step method, provide reasoning..pdf
Differential EquationShow step by step method, provide reasoning..pdfDifferential EquationShow step by step method, provide reasoning..pdf
Differential EquationShow step by step method, provide reasoning..pdfkhetre12
 
Differences between U.S. money market instruments and GermanySo.pdf
Differences between U.S. money market instruments and GermanySo.pdfDifferences between U.S. money market instruments and GermanySo.pdf
Differences between U.S. money market instruments and GermanySo.pdfkhetre12
 
Differences between process explanations and instructions.Describ.pdf
Differences between process explanations and instructions.Describ.pdfDifferences between process explanations and instructions.Describ.pdf
Differences between process explanations and instructions.Describ.pdfkhetre12
 
Difference between terminal and instrumental valuesSolutionTer.pdf
Difference between terminal and instrumental valuesSolutionTer.pdfDifference between terminal and instrumental valuesSolutionTer.pdf
Difference between terminal and instrumental valuesSolutionTer.pdfkhetre12
 
Dictator Dim wants to replace counting, in particular, counting the .pdf
Dictator Dim wants to replace counting, in particular, counting the .pdfDictator Dim wants to replace counting, in particular, counting the .pdf
Dictator Dim wants to replace counting, in particular, counting the .pdfkhetre12
 
diagonalizable If A DOES NOT have distinct eigenvalues, eg 2 ei.pdf
diagonalizable If A DOES NOT have distinct eigenvalues, eg 2 ei.pdfdiagonalizable If A DOES NOT have distinct eigenvalues, eg 2 ei.pdf
diagonalizable If A DOES NOT have distinct eigenvalues, eg 2 ei.pdfkhetre12
 
Develop a fully specified model of the factors that affect fundraisi.pdf
Develop a fully specified model of the factors that affect fundraisi.pdfDevelop a fully specified model of the factors that affect fundraisi.pdf
Develop a fully specified model of the factors that affect fundraisi.pdfkhetre12
 
Devron and Maxwell, investors in the Grand Corporation, are dissatis.pdf
Devron and Maxwell, investors in the Grand Corporation, are dissatis.pdfDevron and Maxwell, investors in the Grand Corporation, are dissatis.pdf
Devron and Maxwell, investors in the Grand Corporation, are dissatis.pdfkhetre12
 
Determine whether therelation R onthe set of all people is reflexive.pdf
Determine whether therelation R onthe set of all people is reflexive.pdfDetermine whether therelation R onthe set of all people is reflexive.pdf
Determine whether therelation R onthe set of all people is reflexive.pdfkhetre12
 
Determine whether the following sources of the U.S. comparative adva.pdf
Determine whether the following sources of the U.S. comparative adva.pdfDetermine whether the following sources of the U.S. comparative adva.pdf
Determine whether the following sources of the U.S. comparative adva.pdfkhetre12
 
Determine whether the events are independent or dependent. Then find.pdf
Determine whether the events are independent or dependent. Then find.pdfDetermine whether the events are independent or dependent. Then find.pdf
Determine whether the events are independent or dependent. Then find.pdfkhetre12
 
Determine whether the following events are independent or dependent.pdf
Determine whether the following events are independent or dependent.pdfDetermine whether the following events are independent or dependent.pdf
Determine whether the following events are independent or dependent.pdfkhetre12
 
Determine whether or not the existence-uniqueness theorem guarantees.pdf
Determine whether or not the existence-uniqueness theorem guarantees.pdfDetermine whether or not the existence-uniqueness theorem guarantees.pdf
Determine whether or not the existence-uniqueness theorem guarantees.pdfkhetre12
 
Determine two Numerical Techniques that are used to solve particular.pdf
Determine two Numerical Techniques that are used to solve particular.pdfDetermine two Numerical Techniques that are used to solve particular.pdf
Determine two Numerical Techniques that are used to solve particular.pdfkhetre12
 

Mehr von khetre12 (19)

Differentiate ln( cose^2x)Solution Fir.pdf
Differentiate ln( cose^2x)Solution                     Fir.pdfDifferentiate ln( cose^2x)Solution                     Fir.pdf
Differentiate ln( cose^2x)Solution Fir.pdf
 
Differentiate between Real-time OS and Single-userSingle-tasking OS.pdf
Differentiate between Real-time OS and Single-userSingle-tasking OS.pdfDifferentiate between Real-time OS and Single-userSingle-tasking OS.pdf
Differentiate between Real-time OS and Single-userSingle-tasking OS.pdf
 
Differentiate between BYOD and Mobile Computing.SolutionBYOD .pdf
Differentiate between BYOD and Mobile Computing.SolutionBYOD .pdfDifferentiate between BYOD and Mobile Computing.SolutionBYOD .pdf
Differentiate between BYOD and Mobile Computing.SolutionBYOD .pdf
 
Differential equations.The amount of money A in a bank account tha.pdf
Differential equations.The amount of money A in a bank account tha.pdfDifferential equations.The amount of money A in a bank account tha.pdf
Differential equations.The amount of money A in a bank account tha.pdf
 
Differential EquationsA tree contains a known percentage p0 of a r.pdf
Differential EquationsA tree contains a known percentage p0 of a r.pdfDifferential EquationsA tree contains a known percentage p0 of a r.pdf
Differential EquationsA tree contains a known percentage p0 of a r.pdf
 
Differential EquationShow step by step method, provide reasoning..pdf
Differential EquationShow step by step method, provide reasoning..pdfDifferential EquationShow step by step method, provide reasoning..pdf
Differential EquationShow step by step method, provide reasoning..pdf
 
Differences between U.S. money market instruments and GermanySo.pdf
Differences between U.S. money market instruments and GermanySo.pdfDifferences between U.S. money market instruments and GermanySo.pdf
Differences between U.S. money market instruments and GermanySo.pdf
 
Differences between process explanations and instructions.Describ.pdf
Differences between process explanations and instructions.Describ.pdfDifferences between process explanations and instructions.Describ.pdf
Differences between process explanations and instructions.Describ.pdf
 
Difference between terminal and instrumental valuesSolutionTer.pdf
Difference between terminal and instrumental valuesSolutionTer.pdfDifference between terminal and instrumental valuesSolutionTer.pdf
Difference between terminal and instrumental valuesSolutionTer.pdf
 
Dictator Dim wants to replace counting, in particular, counting the .pdf
Dictator Dim wants to replace counting, in particular, counting the .pdfDictator Dim wants to replace counting, in particular, counting the .pdf
Dictator Dim wants to replace counting, in particular, counting the .pdf
 
diagonalizable If A DOES NOT have distinct eigenvalues, eg 2 ei.pdf
diagonalizable If A DOES NOT have distinct eigenvalues, eg 2 ei.pdfdiagonalizable If A DOES NOT have distinct eigenvalues, eg 2 ei.pdf
diagonalizable If A DOES NOT have distinct eigenvalues, eg 2 ei.pdf
 
Develop a fully specified model of the factors that affect fundraisi.pdf
Develop a fully specified model of the factors that affect fundraisi.pdfDevelop a fully specified model of the factors that affect fundraisi.pdf
Develop a fully specified model of the factors that affect fundraisi.pdf
 
Devron and Maxwell, investors in the Grand Corporation, are dissatis.pdf
Devron and Maxwell, investors in the Grand Corporation, are dissatis.pdfDevron and Maxwell, investors in the Grand Corporation, are dissatis.pdf
Devron and Maxwell, investors in the Grand Corporation, are dissatis.pdf
 
Determine whether therelation R onthe set of all people is reflexive.pdf
Determine whether therelation R onthe set of all people is reflexive.pdfDetermine whether therelation R onthe set of all people is reflexive.pdf
Determine whether therelation R onthe set of all people is reflexive.pdf
 
Determine whether the following sources of the U.S. comparative adva.pdf
Determine whether the following sources of the U.S. comparative adva.pdfDetermine whether the following sources of the U.S. comparative adva.pdf
Determine whether the following sources of the U.S. comparative adva.pdf
 
Determine whether the events are independent or dependent. Then find.pdf
Determine whether the events are independent or dependent. Then find.pdfDetermine whether the events are independent or dependent. Then find.pdf
Determine whether the events are independent or dependent. Then find.pdf
 
Determine whether the following events are independent or dependent.pdf
Determine whether the following events are independent or dependent.pdfDetermine whether the following events are independent or dependent.pdf
Determine whether the following events are independent or dependent.pdf
 
Determine whether or not the existence-uniqueness theorem guarantees.pdf
Determine whether or not the existence-uniqueness theorem guarantees.pdfDetermine whether or not the existence-uniqueness theorem guarantees.pdf
Determine whether or not the existence-uniqueness theorem guarantees.pdf
 
Determine two Numerical Techniques that are used to solve particular.pdf
Determine two Numerical Techniques that are used to solve particular.pdfDetermine two Numerical Techniques that are used to solve particular.pdf
Determine two Numerical Techniques that are used to solve particular.pdf
 

KĂĽrzlich hochgeladen

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
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
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
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
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
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
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 

KĂĽrzlich hochgeladen (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
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
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
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 🔝✔️✔️
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
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
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 

Develop computer program in MATLAB that will have a calling program .pdf

  • 1. Develop computer program in MATLAB that will have a calling program that calls a self-written function to evaluate the function: by its series. The calling program is to evaluate the function by an arithmetic statement. The input argument to the self-written function is to be an element of the x vector which ranges from -0.9 to +0.9 in steps of 0.1. The output of the self-written function is to go to the calling program and is to be the values of f (x) at the input values. In the calling program create a table containing x, f (x) by the arithmetic statement and f (x) by its series. Plot f (x) vs. x. Solution Examples of simple MATLAB functions Herein we present an example of a simple function that calculates the area of a trapezoidal cross-section in an open channel, given the bottom width, b, the side slope z, and the flow depth y (see the figure below). + b 1 Y z T rapezoidal cross-section function [A] = Area(b,y,z) %|---------------------------------------------| %| Calculation of the area of a trapezoidal | %| open-channel cross-section. | %| | %| Variables used: | %| =============== | %| b = bottom width (L) | %| y = flow depth (L) | %| z = side slope (zH:1V, dimensionless) | %| A = area (L*L, optional in lhs) | %|---------------------------------------------| A = (b+z*y)*y;