이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
How to replicate picture?
조회 수: 6 (최근 30일)
이전 댓글 표시
s z
2018년 9월 21일
Hiya,
I would like to replicate the following plot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196341/image.png)
I have an n x n binary matrix, the ones indicate where the road should be and the 0s where nothing should be. Ignore the red dot.
Thanks!
댓글 수: 13
s z
2018년 9월 21일
Thanks for answering my question but with imshow() I get a picture like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/197551/image.png)
I think the figure is created in another way
Walter Roberson
2018년 9월 21일
Is your concern that the background is showing up in white instead of in light gray ?
Image Analyst
2018년 9월 21일
Read this link first, then tell us what "replicate" means to you. Like make copies of, like the repmat() function does? We really have no idea what you're thinking.
Walter Roberson
2018년 9월 21일
... We still do not understand what you are asking for, so we cannot advise you if there is a way to do what you want.
Image Analyst
2018년 9월 21일
There might be, but since we don't know what you want, we don't know what to tell you. We don't know if it's a display/visualization problem, a line detection or segmentation problem, a replication/copying/pasting problem or something else.
s z
2018년 9월 21일
It is an ML problem. By using a recurrent ANN a game has to be solved. A game where there is a car (red dot) and you want to minimize the amount the car is not between the road (the two lines). So this picture above is just a snapshot of the game you would plot after each result to see the car moving
Image Analyst
2018년 9월 21일
What is ML? Do you have coordinates of the road boundaries and of the red spot/car location?
s z
2018년 9월 21일
Machine learning - I figured it out! if you use plot3() and with view(2) you can have this birds view - thanks for the thoughts!!
답변 (0개)
참고 항목
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)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)