How to make a grid with non-uniform nodes

10 views (last 30 days)
Hi, I need to create a grid that has a node structure as shown in the picture attached. I managed to do a small section in Excel but need a grid size of 100 x 100 nodes and greater. I understand this would be best by using a loop but cant seem to work out how I would do it to make a grid like this. If anyone could help or forward some code for this problem to work that would be very helpful. Thank you.

Accepted Answer

Dipesh
Dipesh on 19 Mar 2014
Thank you for the help. I have managed to solve my problem.

More Answers (1)

Walter Roberson
Walter Roberson on 18 Mar 2014
Example:
[X, Y] = ndgrid( 1 - logspace(0.01, 1, 100), linspace(0, 1, 100) );
  2 Comments
Dipesh
Dipesh on 19 Mar 2014
Sorry this is not what im looking for. I want the spaces between the points to firstly start off close together and then get further apart based on a specific scaling factor. Thank you for your help though.
Walter Roberson
Walter Roberson on 23 Sep 2016
Edited: Walter Roberson on 23 Sep 2016
initial_value .* ((1+scaling_factor) .^ (0:99))
However I would point out that the image clearly shows the points getting closer together, not further apart.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!