fprintf parse error, invalid matlab syntax

4 次查看(过去 30 天)
for i = 1:r/s
newt = t-atand(i*s/(sqrt(r^2-(i*s)^2)));
fprintf(N_file,'G01 X%1.6f Y%1.6f C%1.0f B360;\n', -i*s, sqrt(r^2-(-i*s)^2)-r),newt);
fprintf(N_file,'G02 X%1.6f I%1.6f J0.0 K0.0;\n', -i*s, i*s);
end
error message:

采纳的回答

Stephen23
Stephen23 2021-3-30
fprintf(N_file,'G01 X%1.6f Y%1.6f C%1.0f B360;\n', -i*s, sqrt(r^2-(-i*s)^2)-r),newt);
% ^ delete this

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Argument Definitions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by