Probelm with modeling a triangle

  • Thread starter Thread starter tomallan
  • Start date Start date
  • Tags Tags
    Modeling Triangle
Click For Summary
SUMMARY

The discussion focuses on modeling a triangle within a square cell using MATLAB. The user encounters issues specifically in the second half of their triangle code, particularly between the coordinates -s/2 to s/2. The square cell dimensions are defined as 2r1 x 2r1. The user seeks assistance in identifying logical errors or potential over-definition in their code.

PREREQUISITES
  • Understanding of MATLAB programming
  • Basic knowledge of geometric modeling
  • Familiarity with coordinate systems in 2D space
  • Concept of triangle properties and dimensions
NEXT STEPS
  • Review MATLAB's graphical functions for 2D plotting
  • Learn about coordinate transformations in MATLAB
  • Investigate geometric algorithms for triangle representation
  • Explore debugging techniques in MATLAB for logical errors
USEFUL FOR

This discussion is beneficial for MATLAB programmers, geometric modelers, and anyone involved in computational geometry or graphical programming.

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: 536
  • 20140901_011337158_iOS.jpg
    20140901_011337158_iOS.jpg
    25.5 KB · Views: 489
Physics news on Phys.org
I'm sorry you are not finding help at the moment. Is there any additional information you can share with us?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
0
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K