필터 지우기
필터 지우기

Creating a coordinate basis with equally spaced points?

조회 수: 2 (최근 30일)
matlabkid602
matlabkid602 2017년 7월 28일
댓글: matlabkid602 2017년 7월 28일
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.
  댓글 수: 1
matlabkid602
matlabkid602 2017년 7월 28일
Okay I've solved it, thank you for the suggestion :))

댓글을 달려면 로그인하십시오.

추가 답변 (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