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:
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Argument Definitions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!