I find a parse error in this following MATLAB code.

2 次查看(过去 30 天)
calibration = ('rms': result(0), 'camera_matrix': result(1).tolist(),
'dist_coefs': result(2).tolist(),
for t = enumerate(result(3))
disp('rotational_vectors':("image" + str(t.c)): t.x.tolist());
end
for t = enumerate(result(4))
disp('translational_vectors': ("image" + str(t.c)): t.x.tolist())
end
for t = enumerate(imageFileNames)
disp('image_files_names': t.c, t.x)
end
); %%%(here I find parse error)

采纳的回答

KSSV
KSSV 2021-7-18
calibration = struct ;
calibration.rms = result(0) ;
calibration.camera_matrix = result(1).tolist();
calibration.dist_coefs = result(2).tolist() ;
for t = enumerate(result(3))
disp('rotational_vectors':("image" + str(t.c)): t.x.tolist());
end
for t = enumerate(result(4))
disp('translational_vectors': ("image" + str(t.c)): t.x.tolist())
end
for t = enumerate(imageFileNames)
disp('image_files_names': t.c, t.x)
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by