fprintf parse error, invalid matlab syntax

4 visualizaciones (últimos 30 días)
AKSHAY SINGH BHADORIA
AKSHAY SINGH BHADORIA el 30 de Mzo. de 2021
Comentada: AKSHAY SINGH BHADORIA el 30 de Mzo. de 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:

Respuesta aceptada

Stephen23
Stephen23 el 30 de Mzo. de 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

Más respuestas (0)

Categorías

Más información sobre Argument Definitions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by