Matlab coding

User Generated

noqhyynunyzneev

Engineering

Description

Unformatted Attachment Preview

Please put all your solutions into ONE file (preferably PDF, or MS-Word) and upload it on ualearn.blackboard.com anytime before the due date and time. Late, hardcopy, or emailed homework is not accepted. MATLAB Exercises 1. The linspace command in MATLAB is an easy way to create a vector of evenly spaced numbers. Write a short description of its use suitable for someone just learning MATLAB. Include examples as you feel necessary. 2. ܘ.܀ ܘܠ ܂ sin(ot) We will plot the responses of many systems in this course, and it is crucial that your plots' titles contain key parameters of the particular system whose response you are showing. The free response of an underdamped SDOF oscillator to initial conditions x(0)= x, and *(0) = v, is x(t)= e -0,1 Vo + £0,X, x, cos(0,t) + Ф. where 0,= 0, V1-E? is the damped natural frequency of the system. Using the above equation, plot the response x(t) versus time for a system with natural frequency 0, = 5 rad/sec and damping ratio $ = 0.06 subject to initial conditions x(0)=0 cm and v. = 3 cm/s. Use the linspace command (see Prob. 1 above) to create a time vector with exactly 749 points between t=0 and t=10 sec. The four parameters must be entered automatically in the title, and you may not use a loop to calculate the response. Also, report clearly the value of 700th position in your time vector. Basically, it is expected that you create a time vector and evaluate the equation above for all time with one command. You must turn in both your m-file and your plot.
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hey there!!Here is the solution

1. Linspace command in MATLAB is used to generate linearly spaced vector,
with the syntax:
- y = linspace(a,b): ...


Anonymous
Nice! Really impressed with the quality.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags