Question


3, (30 points) Run your program for the sequence of steps N = 2,4,8,16, write the Matlab routine which computes the root-mean-square(RMS) error for each case as: e N And the relative error as eN Analyze the behavior of the relative error as function of h/L-1/N. The best way to do it is to make a In-In plot. The error typically behaves according to the power law: Both the pre-exponential C and the power m are easily found from In-In plot which should be close to a straight line (except for very large h) Discuss your findings. 4. (20 points) Run for sequence of s If the spring constant from part (1) is kothen the sequence of spring constant is ko/100, ko/10 10ko, 100ko. Discuss your result, and conclude relationship between K and results. spring constant K (all other parameters remain the same. i just nee help with #3 this is all the information that was given to mee

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Syntax:

Y = RMS(X)
Y = RMS(X,DIM)

Explanation:

Y = RMS(X) returns the root-mean-square (RMS) level of the input, X. If X is a row or column vector, Y is a real-valued scalar. For matrices, Y contains the RMS levels computed along the first nonsingleton dimension. For example, if X is an N-by-M matrix with N > 1, Y is a 1-by-M row vector containing the RMS levels of the columns of X.

Y = RMS(X,DIM) computes the RMS level of X along the dimension, DIM.

t = 0:0.001:1-0.001;
x = (1:4)'*cos(2*pi*100*t);

y = RMS(x,2).

Or simply use this also:

RMSE = sqrt(mean((y-y_pred).^2));

Or easy to approach:

r = sqrt( sum( (data(:)-estimate(:)).^2) / numel(data) );

Add a comment
Know the answer?
Add Answer to:
i just nee help with #3 this is all the information that was given to mee...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Python, given a code in class i just need help with the third bullet point ; using a and n (defin...

    Python, given a code in class i just need help with the third bullet point ; using a and n (defined in the second picture of python code) find the first digit for k! for k =1,...,n. you dont have to type in all this code just help me write the code in the first picture where it says: def benford(a): b = [0 for d in range(1,10)] #Do everthything in here return b 2.2 Generating data In this assignment...

  • LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals clear all c...

    LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals clear all close al1: Generate signals for testing the LMS Algorithm 1000 Fs Sampling frequency Sample time 1/Fs 10000: = L Length of signal S Time vector (0:L-1) *T ; Sum of a 50 Hz sinusoid and a 120 Hz sinusoid 0.7 sin (2*pi*50*t); inuside X d+ 10 randn (size (t)); Sinusoids 5O0000000L plus noise fiqure (1) plot (Fs*t (1:150),x (1:1500)) title('Signal Corrupted with...

  • please answer all prelab questions, 1-4. This is the prelab manual, just in case you need...

    please answer all prelab questions, 1-4. This is the prelab manual, just in case you need background information to answer the questions. The prelab questions are in the 3rd photo. this where we put in the answers, just to give you an idea. Lab Manual Lab 9: Simple Harmonic Oscillation Before the lab, read the theory in Sections 1-3 and answer questions on Pre-lab Submit your Pre-lab at the beginning of the lab. During the lab, read Section 4 and...

  • LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals...

    LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals clear all close al1: Generate signals for testing the LMS Algorithm 1000 Fs Sampling frequency Sample time 1/Fs 10000: = L Length of signal S Time vector (0:L-1) *T ; Sum of a 50 Hz sinusoid and a 120 Hz sinusoid 0.7 sin (2*pi*50*t); inuside X d+ 10 randn (size (t)); Sinusoids 5O0000000L plus noise fiqure (1) plot (Fs*t (1:150),x (1:1500)) title('Signal Corrupted with...

  • Need help with number 3 the last one Need help with number 3 I have already...

    Need help with number 3 the last one Need help with number 3 I have already given the whole question MATH 1030 – Application Assignment 3 Cryptography Due: Thursday, June 4, 2020 at 11:59pm Atlantic time (submit through Brightspace) You must show your work for full marks. The goal of this assignment is to use our knowledge of linear algebra to do cryptography. We will encrypt a plaintext using a cipher where the resulting ciphertext should not be legible unless...

  • just one example/demonstration! Data needed to be calculated is in highlighted in green boxes. And I...

    just one example/demonstration! Data needed to be calculated is in highlighted in green boxes. And I highlighted in red an equation (not sure if thats what you use to calculate it) And ignore the lab instructions on completeing a graph!! I already know how to do that in excel, just curious how Ln (relative rate) and 1/T in K^-1 is calculated by hand* here is the rest of that lab leading up to the question as I know its typically...

  • just now i sent this questions. this is the answer given. however the answer i afraid...

    just now i sent this questions. this is the answer given. however the answer i afraid that he used formula that is not for constant surface temperature and noncircular formula. this is the formula foe the noncircular tube. because the question ask about triangle. my problem is, i cannot answer question 1(b) that ask the heat transfer coefficient, h. please help me. thank you. this pic is a note on constant surface temperature. page 482 ref: HEAT AND MASS TRANSFER:...

  • I can't figure out the formula for each one? Home Insert Draw Page Layout Formulas Data...

    I can't figure out the formula for each one? Home Insert Draw Page Layout Formulas Data Review View 2 E E N DO E Get Add-ins G?- c rv - the slicer e Timeline Link New Comm Plvot Table Recommended Table Pictures Shapes Icons My Add-ins v Recommended 0 vN Maps PivotChart Sparklines Pivot Tables Charts 015 , X fx ACDEFGHIJKLMNOP T U Problem 1: Bernoulli's equation relates the pressure and velocity of a fluid. It states: p+50V2 + pgh...

  • Please help answer all of question 6, thanks! Rotational Dynamics Assignment (200 Points) • Due Friday,...

    Please help answer all of question 6, thanks! Rotational Dynamics Assignment (200 Points) • Due Friday, July 31 at 5:00 pm Equations are in a separate document entitled “Equations for Rotational Dynamics Assignment” • Moments of inertia formulas are provided on the last page of this document • Show all of your work when solving equations. It is not sufficient to merely have a correct numerical answer. You need to have used legitimate equations and algebra. You also need to...

  • 27S 140-1 November 20, 2019 all work in the examination book. A block of mass 1.80...

    27S 140-1 November 20, 2019 all work in the examination book. A block of mass 1.80 kg is suspended from an ideal spring with force constant k = 0.200 N/m. The mass is pushed 15.0 cm below its equilibrium position and then given an initial speed of 0.300 m/s directed downward (watch signs). a. What is the period of the resulting SHM of the block? Show work. (15 points) b. Taking the upward direction as a positive y-axis, the resulting...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT