fprintf parse error, invalid matlab syntax

5 ビュー (過去 30 日間)
AKSHAY SINGH BHADORIA
AKSHAY SINGH BHADORIA 2021 年 3 月 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
  1 件のコメント
AKSHAY SINGH BHADORIA
AKSHAY SINGH BHADORIA 2021 年 3 月 30 日
oh yeah, thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by