how to extract XYZ coordinates from G code file. or excel equivalent commands in matlab

I want to extract XYZ coordinates from a G code program. when i import the .txt file matlab consider whole line as single cell like 'N10 G01 X30 Y40 F200' as one . I want to generate separate XYZ columns. I am able to do it in excel using mid() find() if() iferror()etc such functions. But no success in matlab. Anybody knows equivalent functions in matlab. ? or guide me about the procedure how to do it. ?
I am very much beginner at matlab.

4 Comments

Hello, I am trying to do something same. Did you succeed or did you find any answer?
https://www.mathworks.com/matlabcentral/fileexchange/67767-g-code-reader
How you have done it in excel please help me. Also if you have find out ways in MATLAB.

Sign in to comment.

Answers (0)

Asked:

on 26 Feb 2015

Commented:

on 17 Aug 2022

Community Treasure Hunt

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

Start Hunting!