Info

此问题已关闭。 请重新打开它进行编辑或回答。

Writing Code for Function

1 次查看(过去 30 天)
Lauren Kinchla
Lauren Kinchla 2019-11-13
关闭: John D'Errico 2019-11-13
Write a function named getStringAtColumn which receives a character array and a number as input. The character array (rowOfData) represents a row of data in a comma-separated values (CSV) format. The number (col) represents the column of interest within the row of data. The function must return the character array associated with the column. You can assume correct column numbers will be provided for the row of data passed. The function should have the following name and parameters: getStringAtColumn(rowOfData, col)
For example, if the input is getStringAtColumn('a,b,34', 3) then the function will return '34'

回答(0 个)

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by