New line when writing to a text file using fprintf?
3 views (last 30 days)
I would like to print to a .scad file to create a drawing on openscad.
I want to iterate the drawing through 1-8281. However, I want there to be 8282 seperate lines of code. For each seperate segment of drawing. For example, I want the code to print out:
1stline: $fn = 30
i have attached my code here:
xm,ym,l2 and r2 are all 1x8281 arrays which i wish for their ith value to be printed out.
fo = fopen('random_lens.scad','wt')
fprintf(fo,'$fn = 30;');