The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I have pre-lab 4 for computer science with using MATLAB, who's good in it ?
Pre-Lab 4CS 122L - 5 Points TotalObjectives●Learn how to graph functions●Learn various styles that can be applied to graphingDeliverables●Submit your pre-lab answers in Bblearn under the Lab 4 pre-lab assignment area priorto the start of class.We want to plot the function y = x2over the interval [1,3]. In order to do this, we need toestablish an x vector (our independent variable) and a y vector (our dependentvariable).1) Given x = [1:0.05:3], write the MATLAB code to generate our y vector (Hint: refer tothe original function that we are trying to plot).2) There are many different line specifications that can be used when plotting. Using thedocumentation athttp://www.mathworks.com/help/matlab/ref/linespec.html, answer thefollowing questions:a) List 2 different line style specifiers, and the line style that they produce (e.g., ‘-’is the default solid line).b) List 2 different color style specifiers and the color they produce (e.g., ‘k’ isused to specify black).c) List 2 different marker specifiers and the markers the produce (e.g., ‘p’ is usedto specify pentagram markers)
Attachments:
-----------