Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the output of the following code? x = linspace ( - 2 * , 2 * , 4 0 0 ) ; y

What is the output of the following code?
x=linspace(-2*,2*,400);
y1=sin(x);
y2=cos(x);
y3=sin(x)***cos(x);
figure;
plot(x, y1,'r--', 'LineWidth', 2);
hold on;
plot(x,y2,?1b:?1, 'LineWidth', 2);
plot(x, y3,'g-', 'LineWidth', 2);
hold off;
image text in transcribed

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

8. Describe the main retirement benefits.

Answered: 1 week ago