How to plot this graph on Matlab?

4 ビュー (過去 30 日間)
Kristen Chappel
Kristen Chappel 2021 年 2 月 16 日
コメント済み: Rik 2021 年 2 月 20 日
HI GUYS I WOULD LIKE TO PLOT THIS GRAPH ON MATLAB ? CAN ANYONE TELL ME HOW TO DO IT ? THANKS IN ADVANCE
  2 件のコメント
Kristen Chappel
Kristen Chappel 2021 年 2 月 16 日
Rik
Rik 2021 年 2 月 20 日
Are you aware that using only upper case letters is considered SHOUTING?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2021 年 2 月 16 日
You can use rectangle() to plot the circle and oval.
You can use text() to place text labels on the plot.
  12 件のコメント
Kristen Chappel
Kristen Chappel 2021 年 2 月 17 日
@Image AnalystI DIDN'T UNDERSTAND CAN YOU PLEASE EXPLAIN IT IN MORE DETAILS?
Les Beckham
Les Beckham 2021 年 2 月 18 日
In order to plot more than one point on a plot you need to provide more than one data point. You have not explained where the data for 'Line 1' and 'Line 2' is coming from. As soon as you figure out where that data is coming from it will be easy to plot it along with the other shapes that Image Analyst showed you how to plot.
You should not really post repeated requests for help (especially in all caps, please turn off your caps lock, it is usually interpreted as "yelling") when you haven't explained what you really want or, apparently, listened to the previously provided suggestions..
Explain how you want to "ENTER THE VALUE OF X AND Y MANUALLY ACCORDING TO OUR CHOICE". As Image Analyst suggested, you could prompt for them on the command line (using input()) or create a dialog to ask for the values (using inputdlg()). Or, if you want to do it by clicking on the figure you could try ginput().
Read the documentation for those functions. Here are links to the online docs: input, inputdlg, ginput.
Read the examples and come back with specific questions when you have tried something and it didn't work. Also, post the code that isn't working and show any error messages that you get (the complete error message) and explain what you expect and why what you get isn't what you want.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by