Lab Test-Spring 2018 CS 1022-Introduction to Math Software 3/14/2018 Name Time D
ID: 1766852 • Letter: L
Question
Lab Test-Spring 2018 CS 1022-Introduction to Math Software 3/14/2018 Name Time Duration: 70 minutes Part A: Answer the following five questions by circling the correct choice or by writing Maximum Points: 50 your answer on this sheet in the space provided beneath the question. (2 points each). Write a MATLAB command between and 2. You must use a built-in function that makes this easy to do in MATLAB, rather than doing your own calculations or having MATLAB do them for you. 1. that generates a sequence of S0 equally spaced numbers 2. Write a MATLAB command that writes ONLY the data found variables A, B, and C in its Workspace Window to a file named FileABC. Do not write all of the data in the Workspace. Write the data to the default file type created by MATLAB. 3. What MATLAB command do you use if you want to erase all of the data in the Workspace Window? 4. What is the easiest way to find the maximum value in each row of a 2-dimensional matrix named X? 5. What does the surfe plot do? Be specific so the grader understands that you really know what you are talking about.Explanation / Answer
(a)
>>X=linspace (pi,2*pi,50)
(2)
>>whos(FileABC)
(3)
>>clc
(4)
>>Max(x,2)
(5)
surfc cammand plots data in the form of surfaces having contour
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.