Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function (stringRecords, howMany]=splitmultiplestringEntries(instring) to split a string scalar instring at a comma delimiter and produces the separated strings in an output variable stringRecords
Write a function (stringRecords, howMany]=splitmultiplestringEntries(instring) to split a string scalar instring at a comma delimiter and produces the separated strings in an output variable stringRecords and sets the ouput variable howMany equals the number of strings that were separated. Example 1: (stringRecords, howmany]=splitmultiplestringentries("Smith, Jones") string Records = 2x1 string array "Smith" Jones" howMany = 2 Example 2 (stringRecords, howMany]=splitmultiplestringentries ("Smith, Jones, watson") stringRecords = 3x1 string array "Smith" Jones" Watson" howMany = 3 Function Save C Reset MATLAB Documentation 1 function (stringRecords, howmany)-splitmultiplestringentries(instring) 2 % insert code here 3 4 end Code to call your function C Reset 1 [stringRecords, howMany]=splitMultiplestringentries ("Smith, Jones")
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started