Question: For the following problem, write a single MATLAB statement that will accomplish the stated purpose. Assume a character array TS 1 has already been defined.

For the following problem, write a single MATLAB statement that will accomplish the stated purpose. Assume a character array TS1 has already been defined.
Create a vector LetLoc with the same number of elements as TS1. For each element of TS1 that is alphabetic, the corresponding element of LetLoc should equal 1. All other elements of LetLoc should be 0. Example: TS1='%@3Gb6' returns LetLoc=[000110]
Note: For this part, assume TS1 is already defined and exists in the Workspace.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!