matlab - 3D viewing of a cube placed inside another one -


I have a cube in which I have some discrepancy, it considers it a cube of zero and I have a small cube Use the following code in this number:

  discrepancy = zero (100,100,100); Jjj = 40:60 for jjj = 40: 60 discrepancy (j, jj, jjj) = 10; End and end  

I want to see it in 3D shape in some way, for which I can see this anomaly. How can I do this? Go to

isosfus . You will be able to be included with isosoforf. If you want to show the whole box, then I recommend you do the following: Make a small box (so that some faces come in when it is converted to isosofose) and then scale it to the actual size of the box. You can see it in the following code:

  Anomaly = zero (100,100,100); % Anomaly an2 = zero (100/10 + 2,100 / 10 + 2,100 / 10 + 2); % For plotting an2 (2: 10,2: 10,2: 10) = 1; JJ = 40:60 for jjj = 40: 60 discrepancy (J, JJ, JJJ) = 10; Make 10x10x10 box for J End end end iso = isosurface (inconsistency, 5); Remove the drainage surface iso2 = isosurface (an2,0.5); % A box iso2.vertices = (iso2.vertices-1) * 10; % Offset (in its 1-10 range) and scaling 100x100x100 patch (ISO, 'Faceclosure', 'R', 'edge color', 'none') patch (ISO 2, face-color ',' none '); % The last thing to do is to make a nice plot equal to the similitude axis axis  

Enter image details here


Comments