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일
0 개 추천
댓글 수: 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!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 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)

