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

Part II: Processing a CSV line (10pts) Matlab Question Introduction String proce

ID: 3768240 • Letter: P

Question

Part II: Processing a CSV line (10pts)

Matlab Question

Introduction
String processing and manipulation is an important part of scientific computing. Many data sources store their information in plaintext which can be read in as strings. The data is separated by delimiters. For example a CSV (comma separated values) file may have entries like:

     Name, Age, ID

where Age and ID are written into the file as text versions of numbers and the data is separated by commas.

To do
Write a program that gets a CSV line from a user (via the command line). Compute the sum of the numbers and display that sum to the command line.

Explanation / Answer

F = symsum(f,k,a,b) returns the sum of the series with terms that expression f specifies, which depend on symbolic variable k. The value of k ranges from a to b. If you do not specify the variable, symsum uses the variable that symvar determines. If f is a constant, then the default variable is x.