The input value can be represented by the values of a curve?

1 vue (au cours des 30 derniers jours)
jixie zhuangbei
jixie zhuangbei le 7 Juil 2015
Calculation:z=c.^4+b.^4-c.^2-exp(c+b)-2.*c.*b-b.^2
Here,b=1;
A curve represent the values of c
The values of c versus time
Thus,the values of z can also be represented by a curve?
program: x=[0 25 50 70 80 100]; y=[0 5 7 9 10 11]; a=polyfit(x,y,3); syms X fy=vpa(poly2sym(a,X),4)
x1=min(x):max(x);
h1=polyval(a,x1);
c=fy;b=1;
z=c.^4+b.^4-c.^2-exp(c+b)-2.*c.*b-b.^2
Where is the curve of c?

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 7 Juil 2015
x = [0 25 50 70 80 100];
y = [0 5 7 9 10 11];
a = polyfit(x,y,3);
c = polyval(a,min(x):max(x));
b = 1;
z = c.^4+b.^4-c.^2-exp(c+b)-2.*c.*b-b.^2;
  1 commentaire
jixie zhuangbei
jixie zhuangbei le 7 Juil 2015
Modifié(e) : jixie zhuangbei le 7 Juil 2015
Thank you! Have you run the program before ?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Fit Postprocessing 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