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

1 view (last 30 days)
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?

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 7 Jul 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;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!