I understand that you are getting error while preparing HTML file for conversion to MATLAB Report Generator DOM using “prepHTMLFile” function.
In the “prepHTMLFile” function, it's crucial to include the full file name with the ‘.html’ extension. If your HTML file is named "Myhtml.html," ensure you use the complete name, including the extension, to avoid errors.
The function “prepHTMLFile(inputFile, outputFileName)” creates a prepared HTML file with the name specified by ‘outputFileName’. In your scenario, you have ‘outputFileName’ as "mypreppedHTML.html" and ’inputFile’ as "Myhtml" without the .html extension. This omission can result in an error message stating, "HTML File Myhtml does not exist." To prevent this, use the correct syntax:
>> prepHTMLFile("Myhtml.html", "//output_file_name.html");
I have attached sample HTML file containing base 64 encoded image for more understanding. Above updated code works well on attached HTML file to generate PDF..