Help calculating percent error at different times

2 vues (au cours des 30 derniers jours)
birdnerd007
birdnerd007 le 22 Jan 2020
Commenté : Ganesh Regoti le 23 Mar 2020
I have two arrays that are 1 x 81. The arrays are named theoretical and analytic. The last column value for analytic is 5.50. The last column value for theoretical is 5.45. Currently, I have a step function that calculates the years from 0 to 20000 with 80 steps. How would I calculate the percent error between the analytical and theoretical values for different points in time, ie: years = 50, 250, 500, 750, 1000?
  2 commentaires
darova
darova le 22 Jan 2020
What about interp1?
Ganesh Regoti
Ganesh Regoti le 23 Mar 2020
Hi,
Have you tried interp1? And to generate a function you can use polyfit given x and y values

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur NaNs dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by