Info

この質問は閉じられています。 編集または回答するには再度開いてください。

2D function contruction

1 回表示 (過去 30 日間)
mortain
mortain 2016 年 3 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello, I had scattered data from 3 experiments. The tests measure voltage and flow rate for three different geometries. I have two matrices: if true % code
Flow = [19.05 27.13 34.08 40.48 45.00 49.65 20.55 26.39 34.22 39.44 45.53 49.96 19.88 26.47 33.20 40.04 44.78 49.49];
Voltage = [4.26 4.55 5.23 5.90 6.55 7.27 4.13 4.25 4.32 4.49 4.8 5.2 4.1 4.14 4.21 4.30 4.40 4.50];
geo = [22.5,45,90]; end
I would like to create a function that, given a new value of geo and Flow gives back the voltage. I think it could be an easy thing to do.
I tried with scatteredinterpolant, but didn't succeed in building the interpolant. It keeps giving an error about matrix size, tbh I don't really understand how the input matrix need to be.
I tried with fitlm quadratic, but the values predicted values do not correspond to the original ones (a difference between experiment and model up to 20%)
Would you have any suggestions, please?
Thanks

回答 (1 件)

mortain
mortain 2016 年 3 月 17 日
I sorted it using cftool. Wonderful tool!

Community Treasure Hunt

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

Start Hunting!

Translated by