Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CS 109-CIC Programming for Engineers w. Matlab-Fall 2016 Homework Assignment 7 G

ID: 3777582 • Letter: C

Question

CS 109-CIC Programming for Engineers w. Matlab-Fall 2016 Homework Assignment 7 Generating Vectors and Tables in C++ for Data Analysis and Plotting Using MatLab Due: Wednesday 30 November at 8:00 AM. optional hard copy may be tumed in to the TA. overall Assignment In an earlier assignment we examined the trigonometric identity shown in (1) for a single set of (u, v) values. For this assignment you will calculate the function for a range of u values and a range ofv values, using functions to perform calculations, store the results in arrays, and save the results to a data file which can then be read in and analyzed using Matlab. sin(u) +sin(v)- 2 sin cos File Format The end goal is a data file containing data in the following format: 0.0 table r l e o The first row contains a zero followed by a vector v murfrontain one plement of a yeonoru followed hs one row of a matrix

Explanation / Answer

input

output