title: Transferring code from MATLAB to C# - Curving Fitting
body: <p>I have the code to use <a href="https://www.mathworks.com/products/curvefitting.html" rel="nofollow noreferrer">Curve Fitting Toolbox</a> on MATLAB. For this plotting, I have 3 variables and I need to plot, with different curve fitting algorithms (i.e. Polynomial fit), a 3D graph that the user can interact at some level. </p>
  
  <p>In C# I was able to code most of my mathematical formulas - pretty much transferring the ideas created in MATLAB to C#. The last part of this puzzle it is the curving fitting tool.</p>
  
  <ul>
  <li>I would like to know if there is any robust and reliable C# .net tool that I can use to plot graphs in 3D (similar to MATLAB?). I was able to find some help in <a href="https://numerics.mathdotnet.com/api/MathNet.Numerics/Fit.htm" rel="nofollow noreferrer">https://numerics.mathdotnet.com/api/MathNet.Numerics/Fit.htm</a> but it is only for X and Y - I need something for X, Y, and Z.</li>
  </ul>
  
  <p>I don't expect the code! But some guidance would be helpful.</p>
  
  <p>A few side notes:
  1) We are migrating from MATLAB to C# because of the cost of MATLAB. Each toolbox cost so much money - they are amazing but expensive.
  2) We cannot use OpenSource Tool - for some silly reason, they don't trust.</p>
  
  <p>Any help is welcome. Thank you.</p>