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

  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.

  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

  Calculate the work done by integration

Takes an input argument and calculate the work done by integration usingn segment trapezoidal rule

  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?

  Create a simulink model for the scara robot depicted

Create a Simulink Model for the SCARA robot depicted - The motor specification is appended to this brief - create a subsystem to model the motors taking into account that the inertia of Arms 1 and 2 combined is not a constant but depends upon the..

  Generator and degradations - acquisition

Plot the autocorrelation function and show that other than peak there are only three values in the autocorrelation. What are the values of the autocorrelation function?

  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.

  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.

  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.

  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.

  Simulation of a transmission system with a 4-fsk modulation

Simulation of a transmission system with a 4-fsk modulation scheme; using non-coherent detection method and an awgn channel.

  Simulate circuits using matlab

How can I use MatLab to simulate circuits and also to plot graphs especially Bode diagrams?

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