Outward pointing normal vectors on a triangle

조회 수: 7 (최근 30일)
Kjartan Birgisson
Kjartan Birgisson 2011년 3월 4일
Hey guys.
I'm using the Galerkin method to solve a heat convection problem in 2d.
I have a triangle and I've found the normal vectors to the triangle side.
%Length of one side: a1 = sqrt((x3-x2)^2+(y3-y2)^2);
%Normal vector: n1 = [(x3-x2),y3-y2]./a1;
The problem is that I don't know how to make matlab make the normal vectors point outwards automatically.
So if anyone has a suggestion please tell me.
thanks, Kjartan

답변 (1개)

Brett Shoelson
Brett Shoelson 2011년 3월 4일
Are you familiar with the QUIVER command?
Brett

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by