hi all,
anyone can help me how to create equation using data x,y,z??
Please help me
let say below is my data
x = [5.252907987, 1.945397314, 1.016, 0.243];
y = [287.4171875, 137.4367188, 80.08359375, 37.798];
z = [25.16096572, 23.53767761, 22.72603356, 9.740];

댓글 수: 1

Ameer Hamza
Ameer Hamza 2020년 3월 11일
편집: Ameer Hamza 2020년 3월 11일
How do you want to create equation? Give an example of your equations with vectors x, y, and z.

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

 채택된 답변

Star Strider
Star Strider 2020년 3월 11일

0 개 추천

If you simply want to plot them:
x = [5.252907987, 1.945397314, 1.016, 0.243];
y = [287.4171875, 137.4367188, 80.08359375, 37.798];
z = [25.16096572, 23.53767761, 22.72603356, 9.740];
figure
plot3(x, y, z)
grid on
view(35,20)

댓글 수: 4

so do you know how to create the equation from that graf?
There are any number of possible equations that could fit those data. The correct one would be a function that is the mathematical model of the process that created them. You would have to decide on the most appropriate one.
A linear fit:
x = [5.252907987, 1.945397314, 1.016, 0.243];
y = [287.4171875, 137.4367188, 80.08359375, 37.798];
z = [25.16096572, 23.53767761, 22.72603356, 9.740];
DM = [x(:) y(:) ones(size(x(:)))]; % Design Matrix
B = DM \ z(:); % Estimate Parameters
ze = DM * B; % Fit Data
figure
plot3(x, y, z)
hold on
plot3(x(:), y(:), ze, '-r'),
hold off
grid on
view(35,20)
Experiment with different linear and nonlinear models to get different results.
mohd akmal masud
mohd akmal masud 2020년 3월 11일
편집: mohd akmal masud 2020년 3월 11일
sir, my experiments is nonlinear models. so how? please help me sir what is the equation
Star Strider
Star Strider 2020년 3월 11일
Please post the model, preferably both as LaTeX and as you have coded it.
Note that using the data you posted, it must not have more thann 3 parameters.

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

추가 답변 (1개)

mohd akmal masud
mohd akmal masud 2020년 3월 11일

0 개 추천

Because my theori is
When x is increase, y should increase. But I have to consider z. Because some time is when x is increase, y not increase because of z.
Do you have any idea . Or how to plot that Graf x y z

카테고리

도움말 센터File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

질문:

2020년 3월 11일

댓글:

2020년 3월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by