Plot uncontinous surface made by triangles
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Bilal ALAUDDIN
 el 16 de Nov. de 2017
  
    
    
    
    
    Respondida: KSSV
      
      
 el 17 de Nov. de 2017
            Hi, I'm doing Finite elements and I need some help to plot a discontinuous surface. So basically I got:
p : a matrix with nodes*2 dimension, it represents the coordinates of each node of the mapping.
t : it's a m*3 matrix. With m representing the number of element. (t[1,:] will give [1 2 6] for instance which contains the number of the nodes of the first triangle. I added a fourth column of 1 to t to use pdesurf.
and finally u, a row vector of n elements with n the number of nodes.
So, I'm trying to use pdesurf(p',t',u) to plot all the triangles by using I actually get something but it's not discontinous..
I might use pdeplot but it doesn't work even if I transpose the parameters, I think it's because of the extent of the data I use. (u must be the same size of t I suppose but how do I change it ? What are the values of u then?)
Thank you for your help
0 comentarios
Respuesta aceptada
  KSSV
      
      
 el 17 de Nov. de 2017
        Read about triplot and trisurf. You may also have a look in the following code:
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre 곡면 플롯과 메시 플롯 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!
