"Transform" a graph into data
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Adrien
el 28 de Dic. de 2016
0 votos
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!