Creating CAD geometry from matrix

조회 수: 7 (최근 30일)
Sohail Faizan Shaikh
Sohail Faizan Shaikh 2020년 9월 6일
답변: Sarvani Panguluri 2020년 9월 9일
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

답변 (1개)

Sarvani Panguluri
Sarvani Panguluri 2020년 9월 9일
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

카테고리

Help CenterFile Exchange에서 Model Import에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by