Question
please dont use matlab to solve this problem!

thanks!

AT&T . 22! 12:29 * 19% Problem A (not from textbook): The drag (ir resistance experienced by airplanes can be simply modeledw

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


%%Matlab code for cubic fit of given data clear all close all given data v=[150 175 200 250 300 400); D=[ 7424 10758 16706 30The coefficients are c= 2037.992 20693037 -11.8745007145565 0.014331482578088 0.00200207505665177 Velocity vs. Drag plot Actu

%%Matlab code for cubic fit of given data
clear all
close all

%given data
v=[150 175 200 250 300 400];
D=[7424 10758 16706 30991 53915 127707];

%Matrix form for cubic interpolation
for i=1:length(v)
    A(i,1)=1;
    A(i,2)=v(i);
    A(i,3)=(v(i))^2;
    A(i,4)=(v(i))^3;
end
fprintf('A matrix is \n')
disp(A)
fprintf('D vector is \n')
disp(D')

%coefficient matrix
c=A\D';
fprintf('The coefficients are c=\n')
disp(c)

%plotting the data
plot(v,D,'r*')
DD=c(1)+c(2).*v+c(3).*v.^2+c(4).*v.^3;
hold on
plot(v,DD)
title('Velocity vs. Drag plot')
xlabel('velocity')
ylabel('Drag')
legend('Actual Data','Cubic Interpolation')

%%%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%
   

Add a comment
Know the answer?
Add Answer to:
please dont use matlab to solve this problem! thanks! AT&T . 22! 12:29 * 19% Problem...
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
  • Problem 4.3. The drag (air resistance) experienced by airplanes can be simply modeled using a cubic...

    Problem 4.3. The drag (air resistance) experienced by airplanes can be simply modeled using a cubic equation in terms of velocity, D(v) = 0o + ajv + a202 + azva, where v is the velocity of the plane (we will ignore units in this problem and D is the drag. Engineers working in a wind tunnel test a plane at different velocities and record the drag in the following table: v | 150 175 200 250 300 400 D 7424...

  • PLEASE HELP SOLVE WITH MATLAB LANGUGE. Below are hints to the problem. THANKS A LOT!! 2...

    PLEASE HELP SOLVE WITH MATLAB LANGUGE. Below are hints to the problem. THANKS A LOT!! 2 Coriolis Force In a rotating frame-of-reference,the equations of motion of a particle, written in co- ordinates fixed to the frame, have additional terms due to the rotation of the frame itself Consider such a rotating frame, with its origin at the center of rotation.In these coor- dinates, the equations of motion for a point-mass subjected to forces F, and F S m, are F(0...

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
ADVERTISEMENT