필터 지우기
필터 지우기

exporting to pdf from live script does not include control elements

조회 수: 33 (최근 30일)
hello everyone,
i wanted to make use of the live script and the export function, to export the plots i made as well as the used values into a pdf. so far that is working, but sadly control elements like the slider for example arent shown then.
wordfile = export("LiveScript_FF_Sim_20230421_structs.mlx",...
compose(dir + string(printtime) + 'FF_SIM.pdf'), ...
HideCode=true,PageSize="A4",OpenExportedFile=true);
i cant get my head around what i did wrong there. i do hide the code, cause its already some pages long without it.
something else i noticed, even tho i have "hidecode = true", i have to hide the code everytime in the live editor, let it run and scroll thru the plots, if i had it with code displayed, otherwise the plots are so tiny, as they are in the live editor, when there is just a bit of space left. i thought thats why i used hidecode in the first place.
is there a possibility to display the controle elements as well, with the variable names and assigned values ?
sincerely
André

채택된 답변

Cris LaPierre
Cris LaPierre 2023년 6월 8일
Controls are part of the code, so when you export with "HideCode=true", they are not included. When you do include the code, the export process converts a control to a variable set to the current value. Thre is currently no way to have it display a control element instead.
As for visualizing the plot, you could try the 'Output Inline' option to see the full sized image. It is only when you use 'Output on Right' that the size of the figures is adjusted to match the wideth of the output pane.
When you use the options in the live editor to set the output location/hide code, the editor will remember this setting. See here: https://www.mathworks.com/help/matlab/matlab_prog/add-interactive-controls-to-a-live-script.html#mw_7639166f-8831-4f10-b030-a40a63cbed77
  댓글 수: 6
Andre
Andre 2023년 6월 12일
a lot of the points i mentioned also happen when i didnt run it as a function, there are just a few problems on top of that. ok, then i will make another report.
is the support answering at some point, or just me making the report and then nothing else ? cause im looking always if there was an answer or follow up questions or what ever.
Cris LaPierre
Cris LaPierre 2023년 6월 12일
You should receive a response. I believe the target is 1 business day, but the confirmation email you received back should say.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by