How to include plots in a post?

What commands can be used to include plots in a post?
TIA
Greg

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 1일
편집: Azzi Abdelmalek 2013년 1월 1일

0 개 추천

If I have understood your question:
Save your plot as a JPG image then put it in a host server, then post a link containing your file, example:
<<http://mathworks.com/matlabcentral/images/surf.gif>>

댓글 수: 1

Walter Roberson
Walter Roberson 2013년 1월 1일
If you are just creating a hyperlink, then use a single "<" before the URL, and then a space and then any descriptive text for the URL, and then end with a single ">". This can be done inside a text paragraph, but the link will not be generated within code sections (indented by two spaces.)
If you want the plot to show up directly in the post, then the URL you use must point directly to an image file, and it must be an http: link and not a https: link. Many of the common file servers give out links that end in "/" -- those do not link directly to an image file and so cannot be used for direct images. googledocs is a notable system that uses https: and so cannot be made to appear directly.
To have a plot appear directly, use the syntax that Azzi uses, with "<<" immediately before and ">>" immediately after. This construct must also be the only thing in the text paragraph and cannot be indented: there must be an empty line before and afterwards.
When you include a plot directly, pay attention to the preview: if the plot does not show up in the preview then there is something wrong and the plot will not be displayed to users at all and no link will be displayed for the plot either. The user will have no way of knowing that a plot was directly included in that situation.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by