se string manipulating functions to extract the numbers from the strings and add them together.

1 view (last 30 days)
Two variables store strings that consist of a letter of the alphabet, a blank space, and a number (in the form ‘R 14.3’). Write a script that would initialize two such variable

Answers (1)

Image Analyst
Image Analyst on 18 Mar 2014
Simply use sprintf().

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!