Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7768059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:49:30+00:00 2026-06-01T15:49:30+00:00

My question is related to this link stackoverflow ques In essence repeating the figure

  • 0

My question is related to this link stackoverflow ques

In essence repeating the figure drawn there .. I have a central point ( x , y ) in an image around which I have to draw 4 circles of 1-4 unit radius with 8 angles between them.

In this diagram there are 12 angle bins but I have 8. There is a code solution there but it is for plotting the above figure.

Log Polar Bins

I want to calculate the maximum intensity point in each of the 4 regions of each wedge. Is there any inbuilt function in matlab ? I looked at rose but could’nt understand if it would help me….

I would greatly appreciate if someone could help me how to calculate it in matlab….

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:49:31+00:00Added an answer on June 1, 2026 at 3:49 pm

    I put some code below that should be the basic skeleton of what you want to do. But I left an important function unimplemented because I think you will be able to do it and it will help you understand this process better.

    % I assume that data_points is an M-by-2 array, where each row corresponds 
    % to an (x,y) coordinate pair, and M is the number of data points.
    data_points = ... ;
    
    % I assume this array stores the intensities at each data point.
    intensities = ... ;
    
    % I assume that this stores the total number of gridded polar regions you want
    % to find the max intensity in (i.e. 4*(number of cells) in your picture above).
    total_num_bins = ... ;
    
    % This will store the max intensities. For places that have no nearby 
    % data points, the max intensity will remain zero.
    max_intensities = zeros(total_num_bins);
    
    % I assume these store the values of the center point.
    x = ... ; y = ... ;
    
    % The number of different data points.
    num_data_points = length(intensities); % also equals size(data_points,1)
    
    % Now, loop through the data points, decide which polar bin they fall in, and
    % update the max intensity of that area if needed.
    for ii = 1:num_data_points
    
        % Grab the current point coordinates.
        cur_x = data_points[ii,1];
        cur_y = data_points[ii,2];
    
        % Convert the current data point to polar coordinates,
        % keeping in mind that we are treating (x,y) like the center.
        cur_radius = sqrt( (cur_x - x)^2 + (cur_y - y)^2 );
        cur_angle = atan2(cur_y - y, cur_x - x)
    
    
        % You have to write this yourself, but it
        % will return an index for the bin that this
        % data point falls into, i.e. which of the 4 segments
        % of one of the radial cells it falls into.
        cur_bin = get_bin_number(cur_radius, cur_angle);
    
        % Check if this data point intensity is larger than
        % the current max value for its bin.
        if ( intensities(ii) >= max_intensities(cur_bin))
            max_intensities(cur_bin) = intensities(ii);
        end
    end
    

    You will now have to make the function get_bin_number() which takes as its input the angle and radius of the data point away from the center point. It should return just an index between 1 and total_num_bins, because you will be keeping the max intensities in a linear array. So, for example, index number 1 might correspond to the first 1/4 piece of the closest radial cell in the upper right quadrant, index 2 might correspond to the next 1/4 of that same cell, moving counter-clockwise, or something like this. You have to devise your own convention for keeping track of the bins.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Another question related to this one . I have a List<SortableObjects> that is the
I have a question related to this one . I don't want to do
I have a question related to this one : I'm trying to attach an
My question is related to this link I would like to know how we
This question is related to my previous question Link The method bellow does excatly
This question is somewhat related to this. I want to have document storage along
I have question quite much related to this one I asked a while ago
I found this related question: How do I use composition with inheritance? I would
Please note this question related to performance only. Lets skip design guidelines, philosophy, compatibility,
My question is related to this question: Baseline snaplines in custom Winforms controls However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.