Vector in a Matrix 2x2, calculate the length of the vector
5 views (last 30 days)
Show older comments
%Hello Matlab friends
%I would like to calculate the length aut of a 2x2 Matrix. A=[0 0;12 12]; two points x0/y0 and x12/y12.
A=[0 0;12 12]
l= sqrt((A(2,1)-A(1,1))^2+(A(2,2)-A(1,2))^2);
%i am happy for every help, thank you
1 Comment
Answers (1)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!