Is it possible to get the exact 2D image of the CData matrix of surf plot?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
I have a matlab 3D plot(attached figure). I want to extract the 2D image from the surf plot of matlab like this: 

is it possible?
0 comentarios
Respuestas (1)
  Walter Roberson
      
      
 el 9 de Mzo. de 2019
        The X data in the graphics object is irregularly spaced, forming a sine wave. Therefore we cannot simply take the ZData or CData properties and build a matrix from there.
You will need to getframe() the axes and write that to file.
Alternately if you use export_fig from the File Exchange then it can write more directly to file.
Ver también
Categorías
				Más información sobre Graphics Performance en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

