MATLAB: Tranform vertices by Matrix matrix I have to write a function that transforms a list of vertices by a matrix and returns a list of transformed vertices (same size). Any ideas on how to approach this problem? Best Answer Wouldn't it just beresult = m*v; Related SolutionsMATLAB: Matrix ifft tranform m = [1 1 -1 1 % data matrix 1 1 1 1 -1 -1 -1 1 1 -1 -1 -1 1 -1 -1 -1 -1 -1 1 1 1 1 1 -1 1 1 1 1 -1 1 1 -1 -1 -1 1 1 -1 1 -1 1 1 1 1 1];M = ifft(m, [], 2) % transform each row MATLAB: How to combine sets defined by vertices I need to create a set that is the intersection of several triangles.... Then I need to check whether an arbitrary point is in this new set.Here's how you might do that with polyshape, T1=polyshape([100 0; 0 34.92; 0 0]); %a triangle T2=polyshape([67.26 0; 0 98.67; 0 0]); %another triangle P3=intersect(T1,T2); %the intersection >> P3.isinterior([15,20]) %Is (15,20) inside the polygon?ans = logical 1>> P3.isinterior([50,35]) %Is (50,35) inside the polygon?ans = logical 0 Related QuestionWhat is the difference between wavelets and framelets?
Best Answer