Question: using MATLAB 9) Write a function createUniqueName that will create a series of unique names. When the function is called, a string or character vector
9) Write a function "createUniqueName" that will create a series of unique names. When the function is called, a string or character vector is passed as an input argument. The functions adds an integer to the end of the input, and returns the resulting text. Every time the function is called, the integer that it adds is incremented. Here are some examples of calling the function: >> createUniqueName ("myvar") ans = "myvarl" >> createUniqueName('filename') ans 'filename 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
