Creating a coordinate basis with equally spaced points?

2 次查看(过去 30 天)
Hi. I am trying to create a coordinate basis that has dimensions in x and y axis from 0 to 30.
I am looking for a piece of code that given a number N, will create an X-Y data column of length N of equally spaced points?
How can I do this?
  2 个评论
John D'Errico
John D'Errico 2017-7-28
What have you tried? Have you looked at meshgrid (or ndgrid)? Would that get you a good part of the way there?
matlabkid602
matlabkid602 2017-7-28
I've tried creating linspace vectors but the way my function works is, I need the coordinates in a vector table structure not a meshgrid.

请先登录,再进行评论。

采纳的回答

Steven Lord
Steven Lord 2017-7-28
I believe the linspace and meshgrid functions will be of use to you.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by