How to create a solid structure
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi everybody, I have some problems with the writing of a Matlab script able to create the following solid structure:

This structure should be a single sector of a football stadium, on the tilted surface I will distribute a regular disposition of seats. Thanks to all for the help! Have a god day!
댓글 수: 2
채택된 답변
Star Strider
2014년 3월 29일
편집: Star Strider
2014년 3월 29일
Does this do what you want?
x = linspace(1,50,50);
y = linspace(1,100);
[X Y] = meshgrid(x,y);
Z = X.*tand(30);
figure(1)
mesh(X, Y, Z)
EDIT:
To see what the stadium would look like as steps rather than as a continuous surface, plot figure(2):
figure(2)
bar3(Z)
axis equal
댓글 수: 4
Star Strider
2014년 3월 30일
In that situation, your y vector (that eventually creates the Y matrix) would be:
y = linspace(0,100,200);
I used (0,100,200) here. You may have to experiment with variations such as (1,100,200) until you get the result you want, since I don’t know how you want to specify or calculate them. Having 200 elements in 100 meters puts them about a half meter apart.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

