Error with surf function
Mostrar comentarios más antiguos
Hello,
I have the following data dimentions:
x = linspace(1,16,256)
y = linspace(1,16,256)
size( data ) = 256 x 16
I want to plot this as a 3D using surf function. I tried to use surf( x, y, data), but I got an error due to the length of the vectors. Does any body know how can I plot it proberly?
Respuesta aceptada
Más respuestas (1)
Alan Stevens
el 11 de Ag. de 2020
Try
x = linspace(1,16,16);
y = linspace(1,256,256);
surf(x,y,data)
1 comentario
Khaled Mahmoud
el 11 de Ag. de 2020
Categorías
Más información sobre Interpolation 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!