Vector field rotation using Rotation (Transformation) matrix

Animation to demonstrate the use of the 2D rotation matrix in a vector field
ダウンロード: 49
更新 2019/4/26

ライセンスの表示

%% 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 (2024). Vector field rotation using Rotation (Transformation) matrix (https://www.mathworks.com/matlabcentral/fileexchange/71356-vector-field-rotation-using-rotation-transformation-matrix), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2019a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB Answers3-D Scene Control についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0