MATLAB Answers


SLICE: Hiding the edges of slice

Asked by AP
on 18 Oct 2012

Dear All,

I have sliced the volume data using slice function. Now I want to hide the edges of its mesh. How can I achieve this by using Matlab commands? I tried the following but it did not work.

[x,y,z] = meshgrid(-2:.2:2,-2:.25:2,-2:.16:2);
v = x.*exp(-x.^2-y.^2-z.^2);
h = slice(x,y,z,v,1,[],[]);
set(h, 'Edges', 'NoLine')

The error I get is:

The name 'edges' is not an accessible property for an instance of class 'surface'.

Could someone help me?





No products are associated with this question.

1 Answer

Answer by Matt Fig
on 18 Oct 2012
 Accepted answer

I am not sure if this is what you have in mind:



Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!