How to realize Geometry expansion by matlab
In this article Xiaobian for you to introduce in detail "matlab how to achieve geometry expansion", the content is detailed, the steps are clear, the details are handled properly, I hope this "matlab how to achieve geometry expansion" article can help you solve your doubts, the following follow the editor's ideas slowly in-depth, together to learn new knowledge.
Geometric expansion
X = [- 6-6-7 07 6 6-3-300
-7 2 1 8 1 2-7-7-2-2-7]
X_avg = mean (XP2)
[~, n] = size (X)
Xampp = X-repmat (x_avg, 1,n)
% pan to origin
Krypx = 0.8
Krypy = 0.8
K = [krypx 0]
0 k_y]
% set transformation matrix
Y = k * Xroomp
Y = Y + repmat (x_avg, 1, n)
% translate back
X (:, end+1) = X (:, 1)
Plot (X (1), X (2),'. -', 'markersize',18,'linewidth',2)
Hold on
Y (:, end+1) = Y (:, 1)
Plot (Y (1m:), Y (2m:),'. -', 'markersize',18,'linewidth',2)
Axis square
Read this, the "matlab how to achieve geometric scaling" article has been introduced, want to master the knowledge of this article also need to practice and use to understand, if you want to know more about the article, welcome to follow the industry information channel.