Probelm with modeling a triangle

  • Thread starter Thread starter tomallan
  • Start date Start date
  • Tags Tags
    Modeling Triangle
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 1K views
tomallan
Messages
20
Reaction score
0
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 2r1x2r1 dimension.

I have attached the MATLAB code and the definition of the cell if you are interested.
 

Attachments

  • triangle_90_deg_surface_step_bottom.m
    triangle_90_deg_surface_step_bottom.m
    7.3 KB · Views: 545
  • 20140901_011337158_iOS.jpg
    20140901_011337158_iOS.jpg
    25.5 KB · Views: 499
Physics news on Phys.org