fprintf parse error, invalid matlab syntax

6 Ansichten (letzte 30 Tage)
AKSHAY SINGH BHADORIA
AKSHAY SINGH BHADORIA am 30 Mär. 2021
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:

Akzeptierte Antwort

Stephen23
Stephen23 am 30 Mär. 2021
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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by