Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB -2 4 -1.9 3.61 -1.8 3.24 -1.7 2.89 -1.6 2.56 -1.5 2.25 -1.4 1.96 -1.3 1.69 -1.2 -1.1 1.21 -1 1 -0.9 0.81 -0,8

MATLAB
image text in transcribed
image text in transcribed
image text in transcribed
-2 4 -1.9 3.61 -1.8 3.24 -1.7 2.89 -1.6 2.56 -1.5 2.25 -1.4 1.96 -1.3 1.69 -1.2 -1.1 1.21 -1 1 -0.9 0.81 -0,8 0.64 -0.7 0.49 -0.6 0.36 -0.5 0.25 -0,4 0.16 -0.3 0.09 -0.2 0.04 -0.1 0.01 6,38378E-1 4.07527E-3 0.1 0.01 0.2 0.04 0.3 0.09 0.4 0.16 0.5 0.25 0.6 0.36 0.7 0.49 0.8 0.64 0.9 0.81 1 1 1.1 1.21 1.2 1.3 1.69 1.4 1.96 1.5 2.25 1.6 2.56 1.7 2.89 1.8 3.24 3.61 2 4 1.9 Problem 2 Download the following Excel file: Link to File This file contains 2 columns, we want to use these values to create a plot (remember to separate into separate figures) The first column contains the x values, the second column contains the y values. 1. Import the excel file into MATLAB. 2. Separate the 2 columns out into two new vectors. 3. Create a plot of the 2 vectors with the following options. 1. Grid on. 2. Black dashed line 3. Title should be "Y=X^2" 4. X-axis should be labeled "X axis" 5. Y-axis should be labeled "Y-axis" 4. Create a second plot, but this time use the data directly from the original matrix. That is, refer to each column directly as a vector (think subarrays) when you enter the x and y vectors in the plot command. 5. Into variable min1, assign the minimum 5. Into variable min1, assign the minimum value of y into this (you must use one of the built-in MATLAB functions to do this. 6. The plots should both look like the following: Y=x2 3.5 3 2 2.5 Y-axis 2 1.5 1 1 0.5 0 -2 -1.5 -1 -0.5 0.5 1 1.5 2 2 0 X-axis

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

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions