'PaperPosition' property outputs different value when adding blocks into the Simulink model.
显示 更早的评论
When obtaining the PaperPosition for the model, the values returned are clearly incorrect (wrong proportion). This field is necessary for the function that generates the screenshot of the model to a PDF file, resulting in unnecessary margins in the file. Current proportion:
get_param('model_wrong_proportions','PaperPosition')
ans = 9.2162 5.2044 11.2451 10.5753
After adding a Gain block and an annotation(hit brief spacebar for model's "zoom to fit"). Now the proportions are:
get_param('model_wrong_proportions','PaperPosition')
ans = 7.8061 5.0457 14.0651 10.8926
Proportions have changed, even though the inserted block is within the margins of the prior elements defined.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!