Rotate Point in Matlab Plotting

Click For Summary
SUMMARY

The discussion focuses on rotating a point around a fixed point in MATLAB using a rotation matrix or the built-in rotation function. The user starts with a scatter plot of three random points generated by the commands x=rand(1,3) and y=rand(1,3). To achieve the desired rotation, the user is advised to utilize MATLAB's rotation capabilities as detailed in the official documentation at MathWorks.

PREREQUISITES
  • Basic understanding of MATLAB programming
  • Familiarity with scatter plots in MATLAB
  • Knowledge of rotation matrices
  • Access to MATLAB documentation
NEXT STEPS
  • Research how to implement a rotation matrix in MATLAB
  • Explore the built-in rotate function in MATLAB
  • Learn about coordinate transformations in MATLAB
  • Investigate examples of point rotation in MATLAB plots
USEFUL FOR

Students, educators, and developers working with MATLAB who need to manipulate point positions in graphical representations, particularly in the context of geometric transformations.

eltrinco
Messages
6
Reaction score
0

Homework Statement




i need to fix a point and rotate another one

Homework Equations





The Attempt at a Solution




i did this

i've created this:

x=rand(1,3)
y=rand(1,3)
scatter(x,y)

how do i select and make one point fix and make the other point rotate around it?
 
Physics news on Phys.org

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
13
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K