Hello, I have two question
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello, I have two question-
- I need to plot the below figure in a new form which should show only the region which is blue in color into red color and in a transparent cube. The figure should not show any other mesh except the blue region (in red with mesh).
- Second thing is at present the dimension displaying on each axis is according to the size of meshgrid(49*33*33), I need to change it to actual room size (12*4*5).
Thanks for your help
8 comentarios
Respuestas (1)
Walter Roberson
el 11 de Jun. de 2017
figure
xslice = (1:1:33); %YZ plane over different x-values
yslice = (1:1:49); %XZ plane over different Y-values
zslice = (1:1:33); %XY plane over different z-values
[X, Y, Z] = meshgrid(xslice, yslice, zslice );
data_copy = data_inter;
data_copy(data_copy ~= 1) = nan;
hi = slice(X,Y,Z,data_inter,[1,33],[1,49],1);
xlabel('x-axis')
ylabel('y-axis') %Mind this , explained above*
zlabel('z-axis')
colormap([0 0 0; 1 0 0]);
caxis([0 1])
3 comentarios
Walter Roberson
el 5 de Jul. de 2017
You do not appear to have attached your data for us to test with.
Ver también
Categorías
Más información sobre Surface and Mesh Plots 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!