Thank you for the help. I have managed to solve my problem.
How to make a grid with non-uniform nodes
10 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
More Answers (1)
Walter Roberson
on 18 Mar 2014
Example:
[X, Y] = ndgrid( 1 - logspace(0.01, 1, 100), linspace(0, 1, 100) );
2 Comments
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.
See Also
Categories
Find more on Get Started with MuPAD in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!