MATLAB Publish freezes/hangs when writing multiple sections
Mostrar comentarios más antiguos
I am adding some Notes in a MATLAB file and want to publish it as an HTML or PDF like this -

with this code section
....
load coor_list.dat
% --- Beinhaltet die Informationen über die Phänomenologie der EHS --------
%%
% <html>
% <span style="color:red;font-weight:bold">This line...!</span>
% </html>
laser = 'EHS_Lame_Parameter_1.dat'; %-> Lame curves appproximation...
....
OR this publish like this -

with this code section
....
load coor_list.dat
% --- Beinhaltet die Informationen über die Phänomenologie der EHS --------
%%
% *This line...!*
laser = 'EHS_Lame_Parameter_1.dat'; %-> Lame curves appproximation...
....
Now the problem arises when I am doing this with multiple section. MATLAB hangs while publishing when there are around 80 sections.
Is this beacuse of the number of sections or there could be some other issue? How can I check if there is some other issue?
Could there be a problem because of existing comment lines preceeding/succeeding the sections?
7 comentarios
Rik
el 23 de En. de 2023
I don't have any suggestions regarding the issue you describe, but I do have a remark about your code:
To 'poof' variables in your workspace with this syntax is not recommended, since it is unclear where variables will come from. Loading to a struct instead allows you to track where each variable comes from and where it is used. This will also prevent overwriting variables when you don't expect it.
Atin
el 1 de Feb. de 2023
Sachin
el 13 de Mzo. de 2023
Hi
Could you please provide more information about sections like what's inside those sections.
Atin
el 13 de Mzo. de 2023
Atin
el 20 de Mzo. de 2023
Atin
el 20 de Mzo. de 2023
Respuesta aceptada
Más respuestas (1)
Piyush Dubey
el 4 de Mayo de 2023
0 votos
Hi Atin,
While trying to publish sections to pdf or html format, multiple sections of data being loaded occupies systems resources causing system crash and glitches. Publishing the file section-wise may help avoid the crash.
For more information on various output preferences, you can refer to the following documentation:
1 comentario
Stephanie Thomas
el 14 de Nov. de 2023
How would you publish a file section-wise? I am having publish hang as well, for a script with a for loop. I have never had this problem before and we have very many long simulations in our code base.
Categorías
Más información sobre MATLAB Report Generator en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!