"Transform" a graph into data
이전 댓글 표시
Hi guys,
I tried to transform a profil of a mountain made by hand into a matrix (distance, height).
%profil by hand
height = [1450:50:2000]; %unit m
height = fliplr(height); %flip the vector
x = [0 60 240 840 1110 1290 1620 1890 2010 2040 2160 3000]; %unit m
h = plot(x,height);
But I don't know how to transform my 2 vectors of 12 elements (because I only took 12 points by hand) into a matrix of dimensions [3000, 2]. The aim is to have one value of the height each meter (as we can see on the graph because the points are link up).
Can you help me?
Thanks in advance, Adrien.
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!