Question

I need to write a matlab code that uses linear interpolation to find the time a...

I need to write a matlab code that uses linear interpolation to find the time a plane reaches a 2000 meters altitude whilst descending. The time is in the following format mm:ss.S (datetime)

Time ......................Altitude

11.03.5 ......................2123

11:23.5 ......................1965

I will leave feedback that reflects the quality of your response.

Thank you

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

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

clc
clear all
close all
t=[0,20];
H=[2123,1965];
A=[H(:) ones(2,1)];
C=A\t(:);
fprintf('Time when plane reaches 2000m is 11:%.1f\n',round((3.5+polyval(C,2000))*10)/10)

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
I need to write a matlab code that uses linear interpolation to find the time a...
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
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