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

  Calculate the stress intensity factor

Use the three-parameter zone finite element method or the boundary collocation method to calculate the stress intensity factor K, at the crack tip for the plate

  Build a simulation using newtons laws of motion

Build a new and different simulation of your own using Newtons laws of motion and Show the code and describe how it works

  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?

  Design the automatic control section using statecharts

Aim of this project is to design an embedded system which can move loads from one place to another. The system can be operated manually, automatically and wirelessly.

  Need an expert who can model a drill in simulink

Need an expert who can model a drill in Simulink. Working model of a drill needing for an improvment to behave more realistically as a drill to drill through plastic block.

  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.

  Number of packets received with time

Let x be the number of packets received with time -

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Simulate the standardised sum of independent

Simulate the standardised sum of independent and identically distributed variates - Fit a linear regression model as in Q5, and plot your estimates for β0 and β1 as N increases, together with a line indicating their true values. Supply your code.

  Plot the original periodic square wave

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

  Use matlab to plot the function

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

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