Interactive plots in a report

Hello,
For my current project, I use a GUI to display and sort some data. Then, I create a word report to share the results (all the data are shown within some plots). Unfortunately, each plot inside the word report is a print screen. Hence, the people who read the report cannot zoom, select data, etc.
I would like to improve my code by generating this kind of graph in the report (interactive plots): https://www.amcharts.com/demos/duration-on-value-axis/
Do you know how I can do it into MatLab? It would be perfect if the format of the report is HTML.
Best Regards,
Seb

답변 (1개)

Walter Roberson
Walter Roberson 2017년 5월 21일

0 개 추천

You mention Word. It might be possible to create interactive Word documents that use VBA (Visual Basic) to interact with MATLAB. It would probably be necessary to have MATLAB installed on the system that was viewing the plot.
Either way, what you are asking for cannot be done in HTML alone. It might perhaps be possible to create interactive plots using javascript. I am not sure how you would export the data from MATLAB for that purpose; it would not look like the MATLAB plots.

댓글 수: 5

Seb Seb
Seb Seb 2017년 5월 22일
Hi Walter,
Thanks for answering.
The report will be read by people who doesn't use MatLab. Hence, use the VBA to interact with MatLab isn't a good solution for me.
Do you know if I can generate the report with "3D interactive PDF" by using Matlab Runtime? Because at the moment, the word report is generated if I use MatLab, but, if I try to generate it within MatLab Runtime, it doesn't work.
Best Regards,
Seb
Walter Roberson
Walter Roberson 2017년 5월 22일
Did you install the IDTF2U3D executables on the machine which is running the compiled MATLAB program? Could you be more specific about the error you encounter?
Seb Seb
Seb Seb 2017년 5월 23일
I don't know what is IDTF2U3D :-) (I started to use MCR a month ago)
I installed MCR 2016b then I ran the the compiled Matlab program usging the *.exe file.
Regarding the error, all my MatLab code works as it should excepted for the report. While I push on the button to generate the report, nothing happen (I just hear the sound while an error happen). Is there a way to see the errors as the command window in MatLab?
I can post my code if you need to look at it.
Walter Roberson
Walter Roberson 2017년 5월 23일
Read http://www.mathworks.com/matlabcentral/fileexchange/37640-export-figure-to-3d-interactive-pdf and notice that a series of programs need to be installed; those would have to be installed on the machine that was running the compiled executable that tried to use these functions.
You should wrap your calls to the functions inside a try/catch and put up an error message on failure.
Seb Seb
Seb Seb 2017년 5월 24일
Ok, thanks. I'll read that.

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

카테고리

질문:

2017년 5월 21일

댓글:

2017년 5월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by