Geometric transformations, Electrical Engineering

Assignment Help:

Geometric transformations

  Apply the following geometric transformation to a set of points.
Generate randomly coordinates for 1 point X=(x,y).
X=100*rand(2,1)
x=X(1,1)%to access x coordinate
y=X(2,1)%to access y coordinate

generate a point in homogeneous coordinates
Xh=100*rand(3,1)
Xh(3,1)=1
figure(1);
plot(Xh(1,1),Xh(2,1),'o')  %display it on a figure

rescale the axis of the figure
axis([-100 100 -100 100])

generate 2 points in homogeneous coordinates
Xh=100*rand(3,2)
Xh(3,:)=1

display them on the figure in blue 'ob' and rescale the axis.
plot(Xh(1,:),Xh(2,:),'ob')
axis([-100 100 -100 100])

generate a 3x3 identity matrix using eye function (help eye). Name it H.
Xt=H*Xh;
What does this operation do?

Modify the matrix H such that it translates the points by vector t=[-100, -100];
display them on the same figure in red 'or'
figure(1);
plot(Xt(1,:),Xt(2,:),'or')

clean the figure

clf

Generate 300 points in homogeneous coordinates and display them in green.

(i) transform the points by applying matrix H with appropriately modified parameters. Generate one matrix for each transformation.
        translation  tx=-100, ty=0
        rotation      ra=pi/2;
        scaling       s=2
        translation + rotation + scaling in one matrix

How do you modify the matrix?


Related Discussions:- Geometric transformations

#titl optimal power flow , to get PV curve i want optimal power flow progra...

to get PV curve i want optimal power flow program in matlab

Advantages of expert system, Advantages of Expert System The system, on...

Advantages of Expert System The system, once set up, requires to be tested employing data with known outcomes to see if it functions correctly. If it's being used to diagnos

Find the turns ratio of the ideal transformer, Q. Consider an ampli?er as a...

Q. Consider an ampli?er as a voltage source with an internal resistance of 72 . Find the turns ratio of the ideal transformer such that maximum power is delivered when the ampli?e

memory to register , Memory  to Register This  instruction is used to...

Memory  to Register This  instruction is used to copy the contents of a memory  locations whose  address is specified by the HL register  pair to any register. Before  using th

Determine the antennas radiated power, Q. A transmitter is connected to an ...

Q. A transmitter is connected to an antenna by a transmission line for which ¯ Z 0 = R 0 = 5 0 . The transmitter source impedance is matched to the line, but the antenna is kno

Determine the power rating of compressor motor, An ice plant produces 12ton...

An ice plant produces 12tonn of ice per day at 0 0 C using water at 300C. The plant operates on reversed Carnot cycle between -15 0 C and 28 0 C. If the actual C.O.P. is 50% of the

Determine the current through each resistor, For the circuit of Fig 1a: ...

For the circuit of Fig 1a: (i) Using Ohm's Law , determine the equivalent resistance across the battery (ii)  determine the current through each resistor (iii) the arrang

Describe the process control instructions, Describe the process control ins...

Describe the process control instructions STC - It sets the carry flag & does not affect any other flag  CLC - it resets the carry flag to zero &does not affect any other fl

Show capital asset pricing model, Q. Show Capital asset pricing model? ...

Q. Show Capital asset pricing model? This model was developed by the William F Sharpe ( 1990 Nobel prize winner in the economy ) and john linter in 1960. The model attempt to c

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd