7 views

Uploaded by Anwarul Shafiq Awalludin

Final Test Practice

- Paper - i Aits Part Test - i
- Mechanics
- Motion
- Kinematics Practice
- Faculty.uml.Edu Cbaird 95.657(2011) Homework1
- sas week 2 sem 2 17-18
- Oodesign Fem Java
- BmSdp Log
- Physics 101 syllabus
- Courses Uploads Attachment 112
- What is an RSG file
- Rectilinear Motion
- Physics Honors 1st Semester Study Guide 2010
- Motion in One Dimension Exercise1
- Physics -1st Semester Study Guide
- nr10105-engineering-mechanics-set1
- Motion Past Yr
- PRACTICA LAB DE MATE MATH70.pdf
- Chapter2 Using Formula
- Readme

You are on page 1of 3

Final Test Practice

Comments Questions about this test will be answered in Room : NH.Communal Centre

131.Lecture Rm (145, NH.AP30.L02.131) from 11am to 1pm.

UNIT LEARNING

1 Demonstrate and apply Matlab programming knowledge and problem solving skill to solve basic

engineering problems and process experimental data.

2 Demonstrate the ability to employ student centred learning, creativity, problem solving, critical

thinking, decision-making and communication skills to effectively complete individual and team

task.

Exercise 1 (10%):

A vector is given by x = [3.3 5.1 7 1 2.99 8 13 1.6 2 1.1 4 4]. Create two vectors from x: One call I

which contains the elements of x that are integers and one call F that contains the elements of x that are

not integers. In both I and F, the elements should be in the same order than in x.

Exercise 2 (15%):

The following Mathematical function is considered:

( )

(b) Find the three x positions where y = 0 and plot them on the previous figure. (5%)

(c) Find the local maximum within the interval and the local minimum within the

interval . Plot the results on the previous figure. (5%)

Exercise 3 (15%):

(a) Write a user-define function that fits data points to a power function of the form .

Name the function [ ] ( ), where the input arguments x and y are vectors

with the coordinates of the data points and the output arguments b and m are the constants of

the fitted exponential equation. (5%)

(b) Use powerfit to fit the data below: (5%)

y 0.7 19.3 38.2 88.2 155 224

(c) Make a plot that shows the data points and the function. (5%)

Exercise 4 (40%):

If we assume negligible air friction and ignore the curvature of the Earth, a ball that is thrown into the

air from any point on the Earths surface will follow a parabolic flight path. The height of the ball at

any time t after it is thrown is given by:

( )

where is the initial height of the ball above the ground, is the initial vertical velocity of the ball,

and g is the acceleration due to Earths gravity. The horizontal distance (range) travelled by the ball as

a function of time after it is thrown is given by:

( )

where is the initial horizontal position of the ball on the ground and is the initial horizontal

velocity of the ball.

If the ball is thrown with some initial velocity at an angle of degrees with respect to the Earths

surface, then the initial horizontal and vertical components of the velocity will be:

(a) First consider that the initial position is ( , ) = (0,0), the initial velocity is = 20m/s and

the angle . From the expression of the height, calculate the time for the ball to

reach the ground ( ( ) = 0) and the total horizontal distance travel by the ball ( ( )). Plot

the trajectory of the ball for . (5%)

(b) Repeat the previous question but for an initial position of ( , ) = (0,1.5m). (5%)

(c) Write a user defined function Range which calculates the total horizontal distance travelled by

the ball given the velocity , the angle and the initial height . Consider = 0. (10%)

(d) Using the function Range, find the angle which returns the maximum horizontal distance

the ball can travel using and = 20m/s. (10%)

(e) On a same figure plot the trajectory of the ball for different values of = 10, 20, and 90

and using a bold line the trajectory for = . (10%)

Exercise 5 (20%):

Function dir returns the contents of a specified directory. The dir command returns a structure array

with four fields, as shown here:

>> d=dir(C:\Users\jrpnader\Documents\MATLAB)

d=

4x1 struct array with fields:

name

date

bytes

isdir

datenum

The field name contains the names of each file, date contains the last modification date for the file,

bytes contains the size of the file in bytes, isdir is zero for conventional files and 1 for directories and

datenum contains the Matlab serial date number related to date.

(a) Write a user-defined function that accepts a path (Ex: C:\Users\jrpnader\Documents\) and

directory name (Ex: MATLAB) returns the total size of all files in the directory in bytes.

SizeF=SizeFiles(Path, directory_name). (10%)

(b) Recursion. A function is said recursive if the function calls itself. Create a new function

SizeF=TotSizeFiles(Path, directory_name) which is similar to SizeFiles but calls itself when it

finds a subdirectory and sums up the size of all files in the current directory plus all

subdirectories. (10%)

(Warning: the two first output of dir are a directory call . which is related to the current

directory and a directory call .. which is related to the parent directory. Even if the related

isdir field is 1 for these directories, TotSizeFiles should not look for files within this directory.)

- Paper - i Aits Part Test - iUploaded bypankaj16xiss
- MechanicsUploaded byfroilance
- MotionUploaded byapi-3827354
- Kinematics PracticeUploaded byEdward Gibson
- Faculty.uml.Edu Cbaird 95.657(2011) Homework1Uploaded byGhadendra Bhandari
- sas week 2 sem 2 17-18Uploaded byapi-325945020
- Oodesign Fem JavaUploaded byKo Than Soe
- BmSdp LogUploaded byChristine Rolfe
- Courses Uploads Attachment 112Uploaded byAhmad Salah
- Physics 101 syllabusUploaded byIslam Ahmed
- What is an RSG fileUploaded byPraveen Kumar
- Rectilinear MotionUploaded byConanEdogawa101
- Physics Honors 1st Semester Study Guide 2010Uploaded byDrew Kowalkowski
- Motion in One Dimension Exercise1Uploaded bySaagar Karande
- Physics -1st Semester Study GuideUploaded byAaryan Singh
- nr10105-engineering-mechanics-set1Uploaded bySrinivasa Rao G
- Motion Past YrUploaded byMuhammad Redzuan Saidi
- PRACTICA LAB DE MATE MATH70.pdfUploaded byMario Calderon
- Chapter2 Using FormulaUploaded bySyeramika Mika
- ReadmeUploaded bySeif Eddine Naffouti
- Project mathUploaded byrose
- STMS Configuration Screenshot.docxUploaded byssv_pvr2404
- Chapter 2Uploaded byHassan Amer
- Lecture 2Uploaded bySaifur Rahman
- MSDOScommandsUploaded byKunal Bhavsar
- lec11Uploaded byNikhitesh Henrage
- REVISION QUESTIONS for Work Power and EnergyUploaded bybetibela
- Coursework 2 TaskUploaded byM Rameez Ur Rehman
- Neet Coaching Paper 2018 (Physics)-01.Uploaded byRahul Jaiswal
- Notes on Differential Geometrydiff_geom.pdfUploaded byManos Saridakis

- Subsea PipelinesUploaded byLance Lindsey
- Reef Sanctuary Emp 31.1 Master PDFUploaded byAnwarul Shafiq Awalludin
- 291988765-Oscillating-Water-Column-2.pdfUploaded byAnwarul Shafiq Awalludin
- HLV UGLENUploaded byAnwarul Shafiq Awalludin
- Polymers 2Uploaded byAnwarul Shafiq Awalludin
- DESIGN LOADS RULES/CODES FOR CLASSIFICATION OF SHIPS/OFFSHORE INSTALLATIONSUploaded byAnwarul Shafiq Awalludin
- Orca Flex ManualUploaded byTongYueHern
- JEE309_Assignment3_OnBottomStabilityUploaded byAnwarul Shafiq Awalludin
- os-f101_2008-10[1]Uploaded bypssrijit
- Jee350 Rhino IntroUploaded byAnwarul Shafiq Awalludin
- FEA Project_Report GuidelinesUploaded byAnwarul Shafiq Awalludin
- Combo Extra Section 4 SolutionsUploaded byAnwarul Shafiq Awalludin
- 2014_JEE135_Beauty_Point_Activity.pdfUploaded byAnwarul Shafiq Awalludin
- Area Properties of Common ShapesUploaded byAnwarul Shafiq Awalludin
- How to Write a Technical ReportUploaded byAnwarul Shafiq Awalludin
- engineering mechanics 13e chap 02 solutionUploaded byAbreham Tesfaye
- JEE484 Semi ElasticCatenaryMooring.Uploaded byAnwarul Shafiq Awalludin
- JEE309 Lecture2 SubseaSurvey Part1Uploaded byAnwarul Shafiq Awalludin
- Engine Room VentillationUploaded byAnwarul Shafiq Awalludin
- Drawings Standards 128.25-2005Uploaded byAnwarul Shafiq Awalludin
- 1-s2.0-S0021999104005170-mainUploaded byAnwarul Shafiq Awalludin
- c32 Acert Rating ComUploaded byAnwarul Shafiq Awalludin
- paper34bUploaded byAnwarul Shafiq Awalludin
- Chapter 12 - Wave Forces on Slender CylinderUploaded byJuan Carlos González
- Assignment 2 DoSUploaded byAnwarul Shafiq Awalludin
- Assignment 1 DoSUploaded byAnwarul Shafiq Awalludin
- Hydrostatic & Tank Data (Post Experiment) 2016Uploaded byAnwarul Shafiq Awalludin
- Course Advisory Committees Terms of Reference Feb 09 Web PDFUploaded byAnwarul Shafiq Awalludin
- Central Themes for the Blind SideUploaded byAnwarul Shafiq Awalludin

- Design Guidelines of Reinforced Concrete StructuresUploaded byAchilleas21
- Vibra ModuleUploaded byNarry Strummer
- Empuje Axial en Bombas VerticalesUploaded byKaler Soto Peralta
- 4PH0_2P_que_20160617Uploaded bymoshiurrah
- Structure Analysis - Chapter 1Uploaded byNoor Azlan Ismail
- Groundwater hydrologyUploaded byJames K. Kirahuka
- Mechanics Moments SheetUploaded byMosta Barca Boy Ilb
- P-DeltaUploaded byAnonymous ARMtmNKL
- 8 Feb 2019 Lecture R-Theta Coordinates With ProblemsUploaded byAnas Muzammil
- RCC TbeamUploaded byrohit
- Enhancement of Turbulent Heat Transfer Using Copper Twisted TapeUploaded byBONFRING
- ME2353 Finite Element Analysis Lecture NotesUploaded bychinna
- A Study and Design Of Scramjet Engine Inlet By Using Computational Fluid Dynamics AnalysisUploaded byAnonymous vQrJlEN
- B and US Guide E-Feb14Uploaded byMohd Shahrom Ismail
- Chapter 12b First Law of ThermodynamicsUploaded byPathmanathan Nadeson
- rr779Uploaded byrfmendes21
- Fluid Mechanics TYS Exp 251Uploaded byShubham mishra
- 1-Seismic Behaviors of Columns in Ordinary and Intermediate Moment Resisting Concrete FramesUploaded bysharif
- TP (26,27,29)Uploaded byAnkit Mistry
- AIEEE Module Q.P. Kinematics)Uploaded byMOHAMMED ASIF
- exp3_03.pdfUploaded byprieten20006936
- [Physics] General Scientific Laws - TNPSC Physics Study Materials - TNPSC GURU - TNPSC Group 2A 2017 Notification 1953 Vacancies - TNPSCUploaded byElam Pooranan
- E&M 4 Solutions -For PGRE PreparationUploaded bydbp_patel1994
- Dynamics Tutorial 9-Balancing of reciprocationg machinery-21.pdfUploaded bymanfredm6435
- IAU 2000A and IAU 2006 Precession-Nutation Theories and Their Implementation_CoppolaUploaded bydbowden@bigpond.net.au
- 252732072-To-estimate-the-charge-induced-on-each-one-of-the-two-identical-styrofoam-balls-suspended-in-a-vertical-plane-by-making-use-of-coulomb-s-law.pdfUploaded byAnirudh Goutam
- HFUploaded byMohamed Abdulla
- Plastic-damage Macro-model for Non-linear MasonryUploaded bysvchaudhari
- 15WCEE 1940 pushover analysis.pdfUploaded bycornelo2007
- Mining Science and Technology 1991 Vol.12 p.79 88Uploaded byDicki Setiawan