What does this plot mean? Can an equation be made of it?
조회 수: 2 (최근 30일)
이전 댓글 표시
This is the plot I am trying to get an equation for:
plot((1:N_rel), [e_mean; mean(lambdaSO(1:end-1,:),2)]./e_total, 'ko');
This is what each value is:
N_rel = 20
e_mean = 4.6600e+04
lambdaSO = 20x30 double
e_total = 1x30 double
The first coordinate on the plot is (1, 0.996058).
댓글 수: 0
채택된 답변
Image Analyst
2023년 2월 2일
With this:
N_rel = 20;
e_mean = 4.6600e+04;
lambdaSO = rand(20,30);
e_total = rand(1,30);
x = 1 : N_rel;
y = [e_mean; mean(lambdaSO(1:end-1,:),2)]./e_total
plot(x, y, '.-', 'MarkerSize', 20);
grid on;
legend
whos x
whos y
y is a matrix not a vector like x is. So it will plot columns. Each of the 30 columns of y is like a separate curve. What exactly are you hoping to see?
댓글 수: 2
Image Analyst
2023년 2월 2일
Well, like I said, it plots each column in your matrix as a separate curve.
추가 답변 (2개)
John D'Errico
2023년 2월 2일
Can you get an "equation" for it? No. At least not any more than what you already have. Anyway, an equation involves an equality. You might hope to get an expression that approximates the relation you showed. But you aready have that. And there is no reason you have suggested that anything more meaningful exists, than what you already have.
Cris LaPierre
2023년 2월 2일
편집: Cris LaPierre
2023년 2월 2일
There are likely many equations you could generate that could satisfy the one point you have shared. However, you must take all the points into consideration when coming up with the equation, and you have not shared that.
As John D'Errico said, that process most likely will be an approximation of the data. If that is what you want to do, then you might consider exploring the Curve Fitter app (this does require having the curve fitting toolbox installed).
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
