equation or formula for multiple values to equal a constant
1 次查看(过去 30 天)
显示 更早的评论
Constant is 56.68 and the values are 32.06, 34.26, 35.84, 39.2, 44.92, 52.24
1 个评论
回答(1 个)
Walter Roberson
2023-3-26
format long g
x = [32.06, 34.26, 35.84, 39.2, 44.92, 52.24];
y = repelem(56.68, 1, length(x));
p = polyfit(x, y, 2)
To within round-off error, the formula is
y = 0*x^2 + 0*x + 56.8
which is just
y = 56.8
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!