1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Blababa [14]
4 years ago
10

Write a function in MATLAB called MYCURVEFIT that determines the y value of a best fit polynomial equation based on a single inp

ut, an x value. Predict the y value by fitting a 3rd order polynominal y=f(x) to the data points shown below. The input will be a single x value in the range of 0 to 20. The output should be a single y value obtained by evaluating the best fit third order polynomial at x.
X=0:0.5:20

Y=[14,16,18,22,28,35,50,68,90,117,154,200,248,309,378,455,550,654,770,900,1044,1200,1378,1560,...
1778,2004,2250,2500,2800,3100,3434,3786,4158,4555,4978,5424,5900,6401,6930,7474,8074]

You need to copy and paste the data above into your function

Computers and Technology
1 answer:
eimsori [14]4 years ago
6 0

<u>Solution:</u>

The following will be used:

clc% clears screen

clear all% clears history

close all% closes all files

format long

MY CURVEFIT(7)

function y = MYCURVEFIT(x)

X = 0:0.5:20;

Y = [14, 16, 18, 22, 28, 35, 50, 68, 90, 117, 154, 200, 248, 309, 378, 455, 550, 654, 770, 900, 1044, 1200, 1378, 1560, 1778, 2004, 2250, 2500, 2800, 3100, 3434, 3786, 4158, 4555, 4978, 5424, 5900, 6401, 6930, 7474, 8074];

C = polyfit (X,Y,3);

y = polyval (C,x);

end

You might be interested in
A user may enter some text and the number of times (up to a maximum of 10) to repeat it. Display the text repeated that many tim
DerKrebs [107]

The command that would be given to execute a code that asks for input and runs it repeatedly until it has satisfied the condition is a do-while loop.

<h3>What is a Do While Statement?</h3>

This is a conditional statement that is used in programming to run a set of code and check the conditions set and commands to execute and finally terminates when the conditions are satisfied.

Therefore, based on the fact that a loop would be used, and the displayed text would be repeated many times, the do-while loop would be used for this program.

Read more about do-while statements here:

brainly.com/question/13089591

#SPJ1

6 0
2 years ago
There are several different formats for storing images. They are prints, slides, negatives, and digital. Which is the best forma
denis-greek [22]

Maria wants to create a portfolio of her photography for college. She takes several pictures and submits them online in order to create a photo portfolio book. The best format to submit photographs online is by image urls.

3 0
4 years ago
Complete the statement pertaining to the number of frames used by the national television system committee. The national televis
ArbitrLikvidat [17]

Answer:

a composite video signal that has the refresh rate of 60 half-frames which is interlaced per second. And each of the frames has around 525 lines, and it has around 16 million various colors.

Explanation:

NTSC is the abbreviation for National Television System Committee. And it is the one which is responsible for the video standards in the US, South Korea, Japan, Philippines and various other locations. And the details required are being given in the answer section.

5 0
3 years ago
Can someone explain to me what coom means? kekw
Troyanec [42]

If it is espanish it is como and it means how.

3 0
4 years ago
? Assessment
Dmitry [639]

Option C :Both A and B are false

Explanation:

An online recommendation engine  is a set of algorithms that uses past user data and similar content data to  make recommendations for a specific  user profile. It also uses  competitive filtering to determine  what content multiple similar users  might like.

They are typically composed of a hybrid of content and collaborative filtering procedures. They are used in a variety of software applications, including music playlist generation, movie choice, targeted advertisements, and restaurant recommendations.

So the option C is FALSE as both the options A as well as B are true

6 0
4 years ago
Other questions:
  • Grace is the sub-editor in a business firm. which feature of a word processing program would she use to make her changes visible
    14·1 answer
  • Which of the following is the definition of Internet Protocol Security ( IPSec)? A remote access client/server protocol. It is a
    13·2 answers
  • Speed is how fast an object moves a certain distance within a length of time. How is speed calculated?
    14·2 answers
  • A user has requested a field that counts the number of child records associated with a custom object. These custom objects have
    5·1 answer
  • The file format that an application can always open a named collection of data on a storage medium such as a hard disk or usb fl
    13·1 answer
  • PLEASE HELP. I’ll mark you BRAINLIST <br> Please read the comment under this question
    9·1 answer
  • Join my among us code<br> SHUHZF
    6·2 answers
  • When you hear music, read a printout, or view a video, you are using a computer's
    13·1 answer
  • What is the current situation of drone technology in emergency rescue and recovery
    14·1 answer
  • Find the name of the professor with the maximum percentage of students that failed his course.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!