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

  Build a simulation model to model given process

uild a simulation model in SIMUL8 to model this process. Find the average total time each type of customer spends in the system, as well as the number of balks. Also, find the maximum length of each queue, and both server utilisations.

  Simulate using beam propagation method

Simulate using BPM (Beam propagation method) the following wave guid?

  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.

  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

  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.

  Employ the use of word comparison instructions to control

Utilizing a single timer. employ the use of Word Comparison instructions to control our simulated traffic light. The sequence of operation and timing durations are set out in following timing diagram.

  How many em iterations are needed for convergence

How many EM iterations are needed for convergence? Plot a contour plot of your final GMM pdf. Overlay the contour plot with a scatterplot of the data set.

  Evaluate the inner product of the hilbert-transform pair

Find the Hilbert-transform pair, find the average power of the Hilbert-transform pair and evaluate the inner product of the Hilbert-transform pair.

  Impact of zigbee on telecommunication systems

Topic is impact of zigbee on telecommunication systems. In this report you need to either do some measurement or do matlab code or simulation.

  Voice transmission between bluetooth devices

Need someone to simulate a Bluetooth module in matlab showing that voice transmission between Bluetooth devices

  Develop a fuzzy forecasting system using matlab

Develop a fuzzy forecasting system using Matlab Toolbox. The system performs a forecasting task for power marketing price. The data used in this assignment is from the real world and it has been split up into two parts.

  Write down the expression for the laplace transform

Write down the expression for the Laplace Transform Y(s) of the solution. Output using a comment in your script. Obtain the solution y(t) using inverse Laplace transform in Symbolic Toolbox. Output using a comment in your script

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