Vector field rotation using Rotation (Transformation) matrix

Animation to demonstrate the use of the 2D rotation matrix in a vector field

您现在正在关注此提交

%% Vector Field in 2D Rotation
% by Prof. Roche C. de Guzman
clear; clc; close('all');
%% Given
f = @(x,y) [1+0*x; sin(x.^2 + y.^2)]; % anonymous fx: f(x,y) = (1)i + (sin(x^2 + y^2))j
xi = 1; xf = 3; yi = 1; yf = 3; n = 8; % x and y initial and final values, and number of elements
the = 30; % rotational angle [deg]
fr = @(x,y) ROT(f,x,y,the); % anonymous fx for rotation

引用格式

Roche de Guzman (2026). Vector field rotation using Rotation (Transformation) matrix (https://ww2.mathworks.cn/matlabcentral/fileexchange/71356-vector-field-rotation-using-rotation-transformation-matrix), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Interactions, Camera Views, and Lighting 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0