how to write a for loop for 4 screws which have x,y,z so that it get print
3 views (last 30 days)
Garmit Pant on 4 Jul 2022
You can use the following code snippet to write the data that you have provided into a text file.
x = [77,-60,-1.11; 120,-60,-1.11 ; 130,-60,-1.11; 140,60,-1.11];
fileID = fopen('exp.txt','w');
for i = 1:size(x,1)
You can read more about 'fprintf' to understand how text can be written into text files: https://www.mathworks.com/help/matlab/ref/fprintf.html