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

조회 수: 1 (최근 30일)
jixie zhuangbei
jixie zhuangbei 2015년 7월 7일
편집: jixie zhuangbei 2015년 7월 7일
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?

채택된 답변

Andrei Bobrov
Andrei Bobrov 2015년 7월 7일
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
jixie zhuangbei
jixie zhuangbei 2015년 7월 7일
편집: jixie zhuangbei 2015년 7월 7일
Thank you! Have you run the program before ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fit Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by