フィルターのクリア

painting specific points in sunflower stracture

13 ビュー (過去 30 日間)
Omri Ifrah
Omri Ifrah 2019 年 11 月 26 日
コメント済み: Omri Ifrah 2019 年 12 月 2 日
Hi!
I have this sunflower structure and in need to paint one point in red and the neighbors in another color.
phi = (sqrt(5)-1)/2;
n = 500;
rho = (5:n-1).^phi;
theta = (5:n-1)*2*pi*phi;
polar(theta, rho, '.');
title([num2str(n) ' Sunflower Seeds']);
set(gcf, 'color', 'w');
How I can do it?
  5 件のコメント
Omri Ifrah
Omri Ifrah 2019 年 12 月 1 日
what is it?
Image Analyst
Image Analyst 2019 年 12 月 1 日
I was wondering that myself. Maybe he meant randi() to get the random index from the list of points he already has in (theta, rho) list of coordinates. Like
randomIndex = randi(length(theta), 1);
randomTheta = theta(randomIndex);
randomRho = rho(randomIndex);

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

回答 (1 件)

Image Analyst
Image Analyst 2019 年 11 月 28 日
Did you try plot(), something like
plot(x, y, 'r.', 'MarkerSize', 30);
  2 件のコメント
darova
darova 2019 年 11 月 28 日
I agree, good idea
Omri Ifrah
Omri Ifrah 2019 年 12 月 2 日
Hi,
I need more information,if you can contact me privetly or explain here how it`s works

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

カテゴリ

Help Center および File ExchangeHistorical Contests についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by