Extract SVG Path attributes

I am currently working on extracting path attributes from a particular svg file. I am able to extract the desired string that look like this:
M 398.7,106.8 c -5.5,-2.7 -20.7,-4.7 -36.1,-4.6 -15.4,0.1
or sometimes it look like the following
M398.7,106.8c-5.5-2.7-20.7-4.7-36.1-4.6s-22.1,2-22.1,2...
My goal is to extract all the letters and number in a n * 2 cell array with letters being placed by themselves in a row while numbers have to be paired together in a column. Please help.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Live Scripts and Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by