Dear Contributers,
There is a loop;
for i = 1:n;X_rotate = X.*cos(i*increment) - Y.*sin(i*increment);Y_rotate = X.*sin(i*increment) + Y.*cos(i*increment);Helix = [X_rotate(1:K1) ; Y_rotate(1:K1)];fileID = fopen('helix_values.txt', 'w');fprintf(fileID,'%f %f\n ', Helix);fclose(fileID);end
When open the text file, there just exists the last values of iteration X_rotate and Y_rotate. I need to collect the values for every iteration. I have tried to use cat command but I probably made mistake. How may I do that?
Thanks in advance.
Best Answer