rotation metrics by an angle theta
Mostra commenti meno recenti
Hey all ,
I am calculating elemnts of matrix whos size are (X,Y) and after i calculate the elemnets, i want to rotate the matrix by an angle of theta.
For example:
x=linspace(-x1,x1,n);
y=linspace(-x1,x1,n);
for i=1:length(x)
for j=1:length(y)
H=some_matrix_that_i_create;
E(x,y,:)=eig(H);
end
end
So my quesion is how can I rotate the matrix E(:,:,n)? Is there anyway to rotate the whole E?
Thanks a lot in advance!
3 Commenti
Define rotating a matrix.
How to rotate a square and a non-square matrix?
Say you have 5x5 square -
y = magic(5)
What should be the output when the matrix is rotated by 5 degrees? 15 degrees? 37.5 degrees? 69 degrees? 4.20 degrees?
"No.. I need control over the angle"
You will have to specify what "control" means in this context.
Please provide as much information as possible, so we can understand what you want to do.
Tomer Segev
il 7 Gen 2024
Dyuman Joshi
il 7 Gen 2024
These seem like streamline plots. Note that rotating matrices is not equal to rotating plots.
Nor do they seem to be rotated w.r.t. each other at pi/4. The center portion/blobs of the plots might seem so, but the rest of the plots do not follow the mentioned rotation.
Risposte (1)
I can imagine what it means to rotate a matrix by an angle of 90, 180 or 270 degrees:
Is that sufficient for what you want ?
1 Commento
Tomer Segev
il 7 Gen 2024
Categorie
Scopri di più su Annotations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!