Problem with modelling triangle

1 次查看(过去 30 天)
Tim
Tim 2014-9-1
评论: Tim 2014-9-1
Hi,
I am trying to model a triangle in a square cell based on its dimension. However, I have some problem with parts of the code, I think it might be the logic behind my programming or over definition with the code itself.
I have attached the code. The problem lies with the second half of the triangle. I have also attached the basis of my analysis. The problem lies between -s/2 to s/2 of the code. Any hints about the wrong logic of my code or over definition will be appreciated. The cell is a square dimension with 2r1 x 2r1 dimension
  2 个评论
Star Strider
Star Strider 2014-9-1
I quickly got lost in your code.
This is obviously more than an equilateral triangle with an ‘s’ parameter. Are you doing finite element analysis or finite element modeling of some sort?
Please go into a bit more detail as to what you want to do and what the problems are.
Tim
Tim 2014-9-1
Hi,
yes, the triangle is equilateral with its centroid coinciding with the centre of the square cell. for the code, s is L_triangle. i have attached an image of what went wrong. There is something with Y(jj)<0. image of the triangle

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Feature Detection and Extraction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by