how to give value stress from excel give color in my mesh
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Nobeth Bastanta Ginting
el 22 de Jun. de 2022
Comentada: Nobeth Bastanta Ginting
el 23 de Jun. de 2022
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1041225/image.png)
0 comentarios
Respuesta aceptada
KSSV
el 22 de Jun. de 2022
You can coonsider using this package: https://in.mathworks.com/matlabcentral/fileexchange/32719-postprocessing-in-fem
9 comentarios
Más respuestas (1)
Hiro Yoshino
el 22 de Jun. de 2022
As you can see (click the link), you can specify the color with the fourth argument (CO) of the function:
[X,Y,Z] = peaks(25);
CO(:,:,1) = zeros(25); % red
CO(:,:,2) = ones(25).*linspace(0.5,0.6,25); % green
CO(:,:,3) = ones(25).*linspace(0,1,25); % blue
mesh(X,Y,Z,CO)
Ver también
Categorías
Más información sobre Stress and Strain en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!