Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SECTION B - PASTE ALL ANSWERS INCLUDING (CODES, MODELS AND OUTPUT CURVES) IN ONE FILE MICROSOFT WORD AND SUBMIT THE SOFT COPY TO THE SUPERVISOR

image text in transcribed
image text in transcribed
SECTION B - PASTE ALL ANSWERS INCLUDING (CODES, MODELS AND OUTPUT CURVES) IN ONE FILE MICROSOFT WORD AND SUBMIT THE SOFT COPY TO THE SUPERVISOR BEFORE YOU LEAVE 180 POINTS QUESTION ONE . The surface area A of a cylinder of radius r and height h is given by the formula: 4-7) Write a MATLAB function named cylinder Surf that takes the radius and height of the cylinder as a parameter and returns the surface area of the cylinder using the formula above. Make sure your function works if a vector of radius values is given (i.e., it should calculate a vector of corresponding surface areas) [6 points) b) Given the radius, r = 2cm to Scm (.e., r = 2:5) and h as Scm, calculate the corresponding surface Area with your function in (a) [4 points) Given 3 Solve for x and y simultaneously on your answer sheet (show work for full mark) [5 points) i) Confirm your answer with Matlab code [10 points) QUESTION TWO You wish to write a script that will analyze the following function: 2x' cos 7 - exp(0.25) .Write the m-file, fun_x.m, required to define this as a MATLAB function. [5 marks) Consider the function Write a MATLAB script that will produce a smooth graph of this function on the interval x = [0-3]. Submit your entire MATLAB script. [6 points) Give a brief explanation of system modeling. [4 points) QUESTION THREE Plot the graph of y against x of [15 points) cos(2t - 7) 9 6x? +3 and y = 3x + 2 on a row vector of 300 linearly equally spaced points between -2 and 2. a) Plot both functions on the same axis with different colors and symbols b) Label both axis c) Title the graph as A Graph of Two Functions d) Add a legend to your output Evaluate dy - (2x - 4x + 2)dx Solve the integral function on your answer sheet [5 point] Confirm your answer with matlab code [5 points) QUESTION FOUR Build the SIMULINK model below to find the closed loop step response for the transfer G(s) to a unit step Shep +102-307-21 Transfer Fon Scope Kp Ensure the following: The step occurs at time 0 (the default is for it to occur at time 1). . The stop time of the simulation is 200seconds. [10] b) Modify your block and reproduce the same graph in Matlab. [5 points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago