MATLAB Answers

How to publish a code with an image inside html?

15 views (last 30 days)
Simone Parisotto
Simone Parisotto on 15 Oct 2018
Edited: Simone Parisotto on 15 Oct 2018
Hi, in the "Example" tab of my submission I do not see the published images: locally everything works fine, while online it returns the following error instead of the images: "The page you were looking for doesn't exist".
As an example, the images I want to show are stored in the html/images/ folder and I use the following html code for publishing:
% <html>
% <table border="1" cellspacing="10px" cellpadding="10px">
% <tr>
% <td style="text-align:center;"><b>Input</b></td>
% <td style="text-align:center;"><b>Output</b></td>
% </tr>
% <tr>
% <td style="width:48%; height:48%; text-align:center; vertical-align:middle"><img src="images/input_amle.png" style="max-height:100%; max-width:100%"></img></td>
% <td style="width:48%; height:48%; text-align:center; vertical-align:middle"><img src="images/output_amle.png" style="max-height:100%; max-width:100%"</img></td>
% </tr>
% </table>
% </html>
Any help is appreciated.
Thanks a lot,
Simone

Answers (0)

Community Treasure Hunt

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

Start Hunting!