Write a scilab code to fit a straight line for the following data.

19 visualizaciones (últimos 30 días)
Kavita
Kavita el 6 de En. de 2019
Abierta de nuevo: Walter Roberson el 7 de En. de 2019
Data:
x 0 1 2 3 4
y 1 1.8 3.3 4.5 6.3
  1 comentario
Walter Roberson
Walter Roberson el 7 de En. de 2019
scilab is a different commercial programming language . This is not an appropriate forum for questions about scilab.

Iniciar sesión para comentar.

Respuestas (2)

Shubham Gupta
Shubham Gupta el 7 de En. de 2019
Use 'polyfit' to fit data to required polynomial degree.
take a look :
help polyfit
I hope this helps.

Image Analyst
Image Analyst el 7 de En. de 2019
I'm sure you don't want us to do your homework for you, but I can offer you my demo of polyfit, attached.

Categorías

Más información sobre Polynomials en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by