How to plot like this????????
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
0 投票
I want to draw my plot like the one shown in the attachment. I tried but in vain.
採用された回答
the cyclist
2022 年 7 月 1 日
7 件のコメント
Sadiq Akbar
2022 年 7 月 1 日
Thank you very much dear the cyclist. But how will we put triangles and circles instead of above i.e., staric etc.?
the cyclist
2022 年 7 月 1 日
The LineSpec property specifies what the line and markers will look like. You can see in the example I posted that the first line is solid green (with no marker), for example.
Please read through the documentation link I put in my prior post (and the link I just posted, which is a section of that page). You will learn how to do this, rather than needing someone else to do it for you.
Sadiq Akbar
2022 年 7 月 4 日
Thank you very much dear the cyclist. Yes you are right. But if you see the symbols on are on the graph lines in the attached figure. But when I plot yours, some symbols come on plot lines and some of them come above and below the graph lines. Why it is so?
the cyclist
2022 年 7 月 4 日
編集済み: the cyclist
2022 年 7 月 4 日
I'm not sure I understand what you mean. In the example I posted, from the documentation, three different y values are plotted (y1, y2, y3), with three different styles:
- y1: green, solid line, no marker -- 'g'
- y2: blue, dashed line, circle marker -- 'b--o'
- y3: cyan, no line, asterisk marker -- 'c*'
Nothing is plotted above or below its own line.
You seem to have a very similar situation, which is why I chose that example to post. For example, your "Proposed method" line has no marker, which makes it similar to y1 in my example.
Sadiq Akbar
2022 年 7 月 4 日
Thank you very much for your prompt response. If you see the attached figure, all the plot lines are solid in it, but when I run your code, it gives me only one solid line of green colour and having no markers. The 2nd line is a dashed line with circles on it and is of blue colour. But the 3rd line is neither solid nor dashed i.e., its not visible but only cyan colour stars are there. But in given attached figure, all lines are visible.
the cyclist
2022 年 7 月 4 日
My example is not intended to create your exact figure.
My example is intended to teach you how the MATLAB syntax works. It should be very easy for you to read the documentation I posted, and edit my example to do what you need. For example, to create a triangle marker instead of a circle marker, you can use '-^' instead of '-o'.
Sadiq Akbar
2022 年 7 月 4 日
Ok dear the cycllist thank you very much for your help.
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Spline Postprocessing についてさらに検索
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)

