Write a matlab-function which determines the center of mass

Assignment Help Simulation in MATLAB
Reference no: EM131015053

Write a MATLAB-function which determines the center of mass of a domain enclosed by an interpolated curve.

This function has no input or output variables. It opens a figure with a big rectangle on the screen (use for example the property 'position' of a figure). The function then asks the user to put his hand on the rectangle and outline the circumference of his hand with a few dozen mouse clicks. This information can be retrieved with the function ginput. Next, the function interpolates these points with splines to obtain a nice (hand) shape and calculates (approximately) the center of mass. Finally, the function produces a picture of the input points, the interpolated curve, and the area inside the curve, with a clear mark at the center of mass.

1. Give the user instructions on the screen.

2. The function should ignore subsequent clicks on the same point (i.e. a double click of the mouse).

3. Interpolation should be done using pseudo arc-length parametrization.

4. The center of mass of a set Ω ⊂ Rn is given by the vector (∫Ωx)/(∫Ω 1).

5. A nice way to calculate, for example, the area of an enclosed domain is via Green's theorem: ∫δΩ[f1 dx + f2 dy] + ∫Ω[(δf2/δx) - (δf1/δy)] dxdy.

Reference no: EM131015053

Questions Cloud

Describing the distribution of the visits : Write a short report describing the distribution of the visits to this web site. Include some discussion of why this distribution might have that particular shape.
Which is not an issue in direct trucking : Assume that the cost of running the warehouse is approximately $1313per hundred-weight. Furthermore, if Bruin decides to consolidate the three'shipments, it must consider the additional cost of breaking them up for local?
Different vari­ations of a cookie recipe : 1. Suppose a food scientist wanted to compare the "tastiness" of different vari­ations of a cookie recipe. (a) Suggest several ways to quantify (measure) "tastiness", and discuss the advantages and disadvantages of each.
Find the formula for the number of kg of salt in the tank : A salt-water mixture is being added to a tank at 4 L/min. The tank mixture is being drained at 4 L/min. Find the formula for x(t), the number of kg of salt in the tank at time t.
Write a matlab-function which determines the center of mass : Write a MATLAB-function which determines the center of mass of a domain enclosed by an interpolated curve. This function has no input or output variables. It opens a figure with a big rectangle on the screen
What skills might juanita have to develop : How might Juanita engage line managers to become more involved in what has traditionally been HR's function in this organization? Why?
Explain dunkerleys method : Explain Dunkerleys method - problem belongs to Dunkerley's method in SHM
How many lica slrs will be shipped after two years : How many Lica SLRs will be shipped after 2 years? At what rate will the number of Lica SLRs shipped be changing after 2 years?
Production line worker : 1. An industrial engineer specializing in ergonomics performs an experiment to see if the position (left, center, or right) within a work station affects the speed achieved by a production line worker who packages a product from a conveyor b..

Reviews

Write a Review

Simulation in MATLAB Questions & Answers

  Calculation of fin efficiency and fin effectiveness

Calculation of fin efficiency and fin effectiveness by creating an interface - Calculation of fin efficiency and effectiveness.

  Write the specification of load mover

Write the specification of LOAD MOVER detailed of the whole design and precise for automatic control section and divide the design into various modules and Is the kernel required if yes which one?

  Create and use at least one loop in function

Make a main m-file that you use to run and call your function file. Give it a unique name. Make sure and include your name, your section, and date at the top of the m-file. Create and use at least one loop (for/while/midpoint), Create and use at l..

  Write a function with header

Write a function with header [M]= myMax(A) where M is the maximum (largest) value in A. Do not use the built-in MATLAB function max

  Compute and plot the response of given system

Compute and plot the response of the following system using integration: 10x(t) + 20x(t) + 1500x(t) = 20 sin25t + 10 sin 15t + 20 sin2t

  Describe the component plots as time approaches infinity

In a separate cell (called Summary Cell ) compare the results of Case I and Case II in terms of - Stability, Direction of the phase plot with respect to equilibrium point and initial condition and Describe the component plots as time approaches infin..

  Calculate the value of the function

For the polynomial f (x) = 0.025x5 - 0.0625x4 - 0.333x3 + x2 - 2, Calculate the value of the function for x = -1, - 0.5, 0, 0.5, 1, 1.5, 2, 2.5

  Negative feedback system with time delay

What T is required? Use Matlab to make a Bode plot for this value of T and draw the signal flow graph to represent the equations of the circuit. Use Mason's Rule to find the transfer function H(s).

  The hodgkin-huxley model for the action potential

MATLAB Project - The Hodgkin-Huxley model for the action potential, Develop a cellular model for a neuron based on the Hodgkin-Huxley equations for the action potential

  Project is on load frequency control using fpid

Project is on load frequency control using FPID tuned using GA and PSO algorithm and the system is a two area system.

  Simulate 16-qam system without grey coding

Simulate and compare the BER of a 16-PSK system and a 16-QAM system without Grey coding and Eb/N0=0,2,4,6,8,10 dB. "

  Numerical solution of a four bar linkage

Plot the distance of separation (in cm) between the point P and Q as a function of θ2 during a full rotation of the crank/handle. What is the maximum separation? At what crank angle does it occur?

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