Clear Filters
Clear Filters

Creating CAD geometry from matrix

11 views (last 30 days)
Sohail Faizan Shaikh
Sohail Faizan Shaikh on 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

Answers (1)

Sarvani Panguluri
Sarvani Panguluri on 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

Categories

Find more on Animation in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!