logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Pope AtkinssBusiness
(4/5)

541 Answers

Hire Me
expert
Les BarkerLaw
(5/5)

544 Answers

Hire Me
expert
Rameshwar GiranResume writing
(5/5)

807 Answers

Hire Me
expert
Bryan CoxxEconomics
(5/5)

895 Answers

Hire Me
MATLAB
(5/5)

Write MATLAB codes to plot the 𝑓(𝑑)= 3𝑑2 +2π‘‘βˆ’0.5 and g(t)=2*t*cos(t) where the variable t changes from 0 to 10 with step 0.5.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

 1. [30 Points] Write MATLAB codes to plot the 𝑓(𝑑)= 3𝑑2 +2𝑑−0.5 and g(t)=2*t*cos(t) where the variable t changes from 0 to 10 with step 0.5. Plot two lines on the same figure. Add a label on the x-axis, a label on the y-axis, a title, and a grid. Also, change the color of the lines. (Hint: you can calculate power operation by ^, and do element-wise operation). You should obtain a figure like in the following;

 2. [30 Points] Write a MATLAB code to create a variable that stores a number and ask the user to enter a number, then check the number is less than, greater than or equal to your number. According to the condition, display a message on-screen (like in example below) (Hint: use if elseif statement)

 Sample screen (red ones entered by the user)

 Enter number: 34

 Your number is bigger than my number

 3. [40 Points] Write a MATLAB code to ask the user to enter a number for the angle, a number to choose the trigonometric functions Sin, Cos and Tangent. According to the user selection, calculate the result of function and display on screen (Hint: Use switch statement).

 Sample screen (red ones entered by the user)

 Enter angle in degrees: 60

 Enter a number to choose function (1: Sin, 2: Cos, 3: tangent): 2 0.5000

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. ThisΒ  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme