現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
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!エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
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)
アジア太平洋地域
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)