Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

on matlab please (25pts) Create a script file myplot to plot sin(x),cos(x), and 2sin(x)cos(x) in the same figure window. First using colon operator create a

on matlab please image text in transcribed
(25pts) Create a script file myplot to plot sin(x),cos(x), and 2sin(x)cos(x) in the same figure window. First using colon operator create a vector x that stores the range of angles between 0x2. You can use /30 as incremental step. Create vectors y,z and u that store sin(x),cos(x) and 2sin(x)cos(x) respectively. Then use plot () command to plot these on the same figure. Use the command hold on between the plot () commands so that a plot command doesn't overwrite the previous plot. Inside the plot command use 'ro', ' g, and 'bs-' options to have red circle symbols with , line, green triangle symbols with ... line, and blue square symbols with solid lines respectively for the three curves. Use axis command to set x - axis and y - axis limits to 02 and 1.5 to 1.5 respectively. Also use xl abe 1 command to have xaxis label as ' x, radians' and ylabel command to have y - axis label as 'trigonometric relations'. Use legend command with arguments as ' sin ', 'cos', and ' 2 sincos'. Lastly, use the title command to give 'Trigonometric Plots' as the plot title

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

Understand outsourcing, global sourcing, and offshoring. 1239

Answered: 1 week ago

Question

=+4 What are non-union workers representations?

Answered: 1 week ago