Creating CAD geometry from matrix
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sohail Faizan Shaikh
el 6 de Sept. de 2020
Respondida: Sarvani Panguluri
el 9 de Sept. de 2020
Hello Community,
I am trying to generate a CAD model from the matrix (say 10x10). This matrix is representing the height of the object at each point in row and column.
I have plotted it as a bar graph and also like a surface plot, however, what I am looking for is a geometry creation which resembles the bar graph but continuous one not like a discrete one. The CAD model can look similar to the one attached here, not necessarily having the cavity in the middle.
Any help/leads will be highly appreaciated.
Thanks
0 comentarios
Respuestas (1)
Sarvani Panguluri
el 9 de Sept. de 2020
Hi,
I assume you are trying to recreate the Cad geometry in MATLAB .To make your bar graph look continuous, you can try to increase the width of bar to 1(default is 0.8) and put the EdgeColor to none to remove the black outline.
x=ones(10,10);
h=bar3(x,1);
for i=1:length(h)
set(h,'EdgeColor','none');
end
For example, considering a 10*10 matrix of ones, the above code gives the following output
0 comentarios
Ver también
Categorías
Más información sobre Animation 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!