MATLAB Answers

Chad Greene

Can a youtube video be embedded in html via publish?

Asked by Chad Greene
on 23 Sep 2014
Latest activity Commented on by Chad Greene
on 30 Sep 2014
I'd like to publish an example file with a youtube video in it. I don't see a clear way to do this, and I've tinkered around a bit to no avail. Any clever ideas out there?


Sign in to comment.

1 Answer

Answer by Alberto
on 24 Sep 2014
 Accepted Answer

Here is a how-to example; try publishing this code:
%%HTML + Youtube
% <html>
% <iframe id="ytplayer" type="text/html" width="640" height="390"
% src=""
% frameborder="0"/>
% </html>


Alberto, that's perfect! Thank you!
Your ideas can be seen in action here. Thanks again Alberto.

Sign in to comment.