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

1 visualización (últimos 30 días)
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?

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 7 de Jul. de 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;

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by