create a test environment with the size 10x10x10cm
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
i wanna create a test environment with the size 10x10x10 cm. This should be my workspace and there is no electrical resistance or something like that. there is only air. Then i want to place a cube in the center of that.
But I dont know, how i can create such of matrix.
Can u guys help me pls??? THX
댓글 수: 2
Walter Roberson
2013년 5월 29일
How finely grained should the cube be? If it is 10 cm per side, do you need it sub-divided into mm ? You mention electrical resistance and air: if you are going to model air-gap electric field breakdowns, then 1 mm per step might be too much for realistic modelling.
Walter Roberson
2013년 5월 29일
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
답변 (2개)
Muruganandham Subramanian
2013년 5월 29일
편집: Muruganandham Subramanian
2013년 5월 29일
>> B = zeros(10,10,10); %Try this
sia
2013년 5월 29일
댓글 수: 2
Walter Roberson
2013년 5월 29일
You need to save that code to test_environment.m somewhere on your MATLAB path.
Note: you will not see any output from this function. When it executes it will construct values within its local workspace, and then when the function executes the workspace will be destroyed, leaving you with no net effect.
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!