i have a matrix like this
A= 10 5 0 12 7 3 15 8 5 19 9 6
i want to add a letter before each element in this matrix , while first column is x-axis values , 2nd column is y-axis values and 3rd column is Z-axis values.
i need to write a capital letter of X before each value of first column elements and letter Y before each value and the same with 3rd column with Z letter like this
X10 Y5 Z0X12 Y7 Z3X15 Y8 Z5
and so on. And after that i need to add this word of ( G1 ) before each line ( or each row of the matrix ) like this
G1 X10 Y5 Z0G1 X12 Y7 Z3G1 X15 Y8 Z5
and last thing to add in capital letter of N followed by the number of the line like this
N1 G1 X10 Y5 Z0N2 G1 X12 Y7 Z3N3 G1 X15 Y8 Z5
and save all of these into text file editable with notepad and other software
i need to know what is the functions to use and how to apply them to make this edit i want
thanks
Tarek
Best Answer