How to make a grid with non-uniform nodes

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)

Example:
[X, Y] = ndgrid( 1 - logspace(0.01, 1, 100), linspace(0, 1, 100) );

2 Comments

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.
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.

Asked:

on 18 Mar 2014

Edited:

on 23 Sep 2016

Community Treasure Hunt

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

Start Hunting!