Filter löschen
Filter löschen

Creating CAD geometry from matrix

11 Ansichten (letzte 30 Tage)
Sohail Faizan Shaikh
Sohail Faizan Shaikh am 6 Sep. 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

Antworten (1)

Sarvani Panguluri
Sarvani Panguluri am 9 Sep. 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

Kategorien

Mehr zu Model Import finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by