1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
PtichkaEL [24]
4 years ago
13

Using Matlab programming I need to rotate the line defined by x,y by 45 degrees around 2,2

Computers and Technology
1 answer:
belka [17]4 years ago
4 0

Answer:

% here x and y is given which we can take as

x = 2:2:10;

y = 2:2:10;

% creating a matrix of the points

point_matrix = [x;y];

%  center point of rotation  which is 2,2 here

x_center_pt = x(2);

y_center_pt = y(2);

% creating a matrix of the center point

center_matrix = repmat([x_center_pt; y_center_pt], 1, length(x));

% rotation matrix with rotation degree which is 45 degree

rot_degree = pi/4;      

Rotate_matrix = [cos(rot_degree) -sin(rot_degree); sin(rot_degree) cos(rot_degree)];

% shifting points  for the center of rotation to be at the origin

new_matrix = point_matrix - center_matrix;  

% appling rotation  

new_matrix1 = Rotate_matrix*new_matrix;          

Explanation:

We start the program by taking vector of the point given to us and create a matrix by adding a scaler to each units with repmat at te center point which is (2,2). Then we find the rotation matrix by taking the roatational degree which is 45 given to us. After that we shift the points to the origin and then apply rotation ans store it in a new matrix called new_matrix1.

You might be interested in
What is one reason why private loans are less favorable than federal loans?
Lilit [14]
The answer is higher interest rate
6 0
4 years ago
Read 2 more answers
What are the advantages of repeating a header row? check all that apply
saveliy_v [14]

Edits made to the header row content will automatically be applied to all pages.

You can add and delete rows from the table without moving the header rows.

7 0
4 years ago
In software development and quality assurance, what is referred to as Quality of service?
KIM [24]

Answer: Quality of service(QoS) is the parameter of the software development. This signifies about the management of the software resources,eliminating traffic or errors and evaluating the assurance about service quality of software.

There are several features that come under the quality of service feature to determine the software quality such as performance, scalability, service,scalability etc.If the software is evaluated positive on these factors then service quality is considered good which results in appropriate software development.

7 0
4 years ago
Question 10 of 10
ValentinkaMS [17]

Answer:

C. Dow Jones

Explanation:

It’s the Dow Jones certainly, and we also know it as Dow 30. You will find with a little research that Dow Jones is an index of the 30 carefully chosen blue-chip stocks, and general industrial stocks. And this is price prejudiced average, and of 30 stocks that can be well-thought-out as an all-purpose measure for the whole stock market performance.

3 0
3 years ago
How do you access the dark web
Artist 52 [7]

Answer:

look up dark web links

Explanation:

8 0
4 years ago
Read 2 more answers
Other questions:
  • An over-target baseline (OTB) is a comprehensive rebaselining effort that is best categorized as an internal replanning effort.
    8·1 answer
  • In an ethernet network, a(n) _____ data transmission is one that can transmit data in both directions at the same time.
    9·1 answer
  • Whenever I go onto Google Chrome, the words are in Spanish! How can I make the words be back in English again? Please let me kno
    7·1 answer
  • At what two layers of the osi model are lan and wan protocols likely to differ??
    7·1 answer
  • Which of the following is the key benefit is offered by the Internet channel? Group of answer choices Deeper assortments Immedia
    7·1 answer
  • What is the best explanation for why digital data is represented in computers in binary?
    10·1 answer
  • Which of the following statements is NOT true regarding the Security Configuration and Analysis (SCA) tool?
    12·1 answer
  • Write this multiplacation statement as repeated addition 5/6 x 3​
    6·1 answer
  • How do you convert an algorithm to make it possible for a computer to read
    6·1 answer
  • Explain on what you did and give on how problems as such can be avoid inthe future
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!